Skip to content

Discrepancy in output Irreps of e3nn.haiku.Linear with and without reinitializing IrrepsArray #75

Answered by mariogeiger
yhwang17 asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry about the inconvenience. Yes it's expected, though I understand that it can be confusing.

The reason is that IrrepsArray has an attribute to tag is a "chunk" is known to be strictly zero.

When you uncomment that line you drop that attribute which changes the behavior of Linear. Linear removes the zero chunks before determining the reachable output irreps.

I introduced this mechanism because originally Linear would sometimes be asked to produce irreps that are not present in the input, to avoid unnecessary computations I introduced that tag such that the output caries that information with it.
Later I realized that a better solution was to avoid Linear to output those zero chunks and…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yhwang17
Comment options

Answer selected by yhwang17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants