Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the
_parallel
decorator work with functions of any* signature …
…by broadcasting numpy arrays and closing over non-arrays. The first argument has to be a numpy array with the leading dimension of size `device_count` for pmapping. *NO ARRAYS ARE ALLOWED IN KEYWORD ARGUMENTS. PiperOrigin-RevId: 270212471
- Loading branch information
1 parent
f6892ca
commit 7cef742
Showing
2 changed files
with
160 additions
and
20 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
7cef742
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.
Fixes issue #5.