-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable constructing C++ ShardedDeviceArray instead of the Python object.
This also contains a cleanup for lax_numpy: - Create functions to setup attributes, so we clearly see what is happening. I am keeping things as they are, but we could, if we wanted to, set all the attributes that we set on `_DeviceArray`/`_CppDeviceArray`/`pmap_lib.ShardedDeviceArray` directly on the `DeviceArray` base class (not sure if it's slower or faster, etc), or we could set them all on the leaf nodes (maybe it's faster). - This also remove some temporary objects in the scope, and I am removing `operator_name`, which for me should not be exposed (it values "round" at HEAD). PiperOrigin-RevId: 390072555
- Loading branch information
Showing
3 changed files
with
72 additions
and
65 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