Skip to content
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

refactor call primitives, simpler param processing #3491

Merged
merged 1 commit into from
Jun 23, 2020
Merged

Conversation

mattjj
Copy link
Collaborator

@mattjj mattjj commented Jun 19, 2020

This is basically #2829 again, though also with a refactoring of how params to call primitives are handled (like donated_invars).

I split these changes out of #3370 to try to shrink that PR down a bit.

There was one strange bug that arose with check_jaxpr and invertible_call which doesn't appear in #3370. It's subtle enough that because it'll go away after #3370 I didn't fix it here and instead just skip a check in check_jaxpr for invertible_call eqns.
EDIT see #3530 for the fix

@mattjj mattjj merged commit 7527830 into master Jun 23, 2020
@mattjj mattjj deleted the call-refactor branch June 23, 2020 16:39
mattjj added a commit that referenced this pull request Jun 23, 2020
mattjj added a commit that referenced this pull request Jun 23, 2020
copybara-service bot pushed a commit to google-deepmind/dm-haiku that referenced this pull request Jun 24, 2020
PiperOrigin-RevId: 317995257
Change-Id: Iaaf74b9c1517a7e781e654cfd28afa358c6350b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants