-
Notifications
You must be signed in to change notification settings - Fork 74.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add relevant shape check for tf.reshape to prevent crash
This PR tries to address the issue raised in 46693 where a shape with large number of elements will cause the tf.reshape to crash. This PR adds relevant shape check so that error message can be returned gracefully. This PR fixes 46693 Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 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