forked from jax-ml/jax
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make eager pmap take advantage of pmap cache
The current strategy of creating a `partial(primitive.bind, **params)` has the downside of completely confusing the pmap cache and resulting in a new compilation for every single primitive. Replacing it with a `HashableFunction` should fix it. Also, pmap_test is now 2x faster! PiperOrigin-RevId: 490749153
- Loading branch information
Showing
1 changed file
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters