forked from tensorflow/tensorflow
-
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.
[XLA] Remove a bogus invalid argument message printed out when --v>=1.
When running any trivial XLA program with --v=1, you will see bogus message such as "Invalid argument: Shape f32[] size may overflow int64". The reason for this is because in ShapeUtil::ValidateShapeSize, we incorrectly construct an InvalidArgument object prematurely. This change postpones the construction of the InvalidArgument object until an invalid argument is actually discovered. PiperOrigin-RevId: 202959886
- Loading branch information
1 parent
587f118
commit 97a040a
Showing
1 changed file
with
37 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