-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default arg values to JAX decorator (#5115)
* Add default arg values to JAX decorator Adds default values for device_id and num_threads for decorated JAX iterator functions. Thanks to this change it is easier to apply sharding to scale up the computation in the most common pattern. Signed-off-by: Albert Wolant <awolant@nvidia.com>
- Loading branch information
Showing
4 changed files
with
209 additions
and
30 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
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
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
180 changes: 150 additions & 30 deletions
180
docs/examples/frameworks/jax/jax-getting_started.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.