-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix logic for determining if a value can be cast to a specific dtype.
Note: * `np.can_cast` does not operate on non-scalar arrays. * `np.can_cast` interprets strings as dtype like specifications. Therefore, it's required to handle these cases differently. Additionally: 1. Moved the logic for determining if a array is compatible with a dtype or a shape to `array.py`. 2. Fixed a lint error in `building_blocks` module. PiperOrigin-RevId: 619218713
- Loading branch information
1 parent
6a6263f
commit 7bcaa5c
Showing
5 changed files
with
214 additions
and
82 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
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
Oops, something went wrong.