-
-
Notifications
You must be signed in to change notification settings - Fork 180
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃Ж 馃懛 Add interaction modules #242
Conversation
Closes #240
All the tests still pass, gucci
Co-Authored-By: Max Berrendorf <berrendorf@dbs.ifi.lmu.de>
This will come back in the next PR
Trigger CI
Trigger CI
Trigger CI
|
||
|
||
def _get_batches(z, slice_size): | ||
for batch in zip(*(hh.split(slice_size, dim=1) for hh in ensure_tuple(z)[0])): |
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.
Hi, I'm trying to learn the code. Why dim=1
is fixed here? I've thought dim
should be passed from _forward_slicing_wrapper
for different h, r, t.
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.
Hi @Yevgnen ,
thanks for looking in such old PRs. This seems to be an error indeed.
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.
Closes #240
This PR adds the PyTorch module wrappers around each of the functional forms of the interaction functions proposed in the previous PR (#238) as well as tests, requisite utility functions, and documentation.
This PR doesn't bring over the literal modules, that's pushed until #244