-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ExpFamilyLayer
#144
Fix ExpFamilyLayer
#144
Conversation
fortunately this is covered by unit tests
num_input_units, | ||
num_vars=len(set(v for n in rg_layers[0][1] for v in n.scope)), | ||
num_channels=num_channels, | ||
num_replicas=len(set(n.get_replica_idx() for n in rg_layers[0][1])), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to add num_replicas()
to the region graph.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is not a property of RGs!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will open another PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is not a property of RGs!
it shouldn't be a property of RG nodes, but that's how we implement now.
Closes #93
Closes #141
ExpFamilyLayer
and usedReparameterization
class instead.ExpFamilyLayer
s and annotated the propagation of tensor shapes.ExpFamilyLayer
to the new Layer interface.TODO: there should be more unit tests -- tracked by #145