Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tf.pad crashes with large paddings #51973

Closed
wants to merge 1 commit into from

Conversation

yongtang
Copy link
Member

This PR tries to address the issue raised in #51908 where
tf.pad crashes with large paddings.
In any case, instead of a crash with undefined behavior,
tensorflow should return an error gracefully.

This PR fixes the issue by adding the necessary checks.

This PR fixes #51908.

Signed-off-by: Yong Tang yong.tang.github@outlook.com

This PR tries to address the issue raised in 51908 where
tf.pad crashes with large paddings.
In any case, instead of a crash with undefined behavior,
tensorflow should return an error gracefully.

This PR fixes the issue by adding the necessary checks.

This PR fixes 51908.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@google-ml-butler google-ml-butler bot added the size:S CL Change Size: Small label Sep 13, 2021
@google-cla google-cla bot added the cla: yes label Sep 13, 2021
@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label Sep 13, 2021
@gbaned gbaned self-assigned this Sep 13, 2021
@gbaned gbaned added comp:core issues related to core part of tensorflow prtype:bugfix PR to fix a bug labels Sep 13, 2021
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation Sep 13, 2021
PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Oct 4, 2021
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Oct 4, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Oct 4, 2021
@tensorflowbutler tensorflowbutler removed the awaiting review Pull request awaiting review label Oct 6, 2021
@gbaned gbaned removed the ready to pull PR ready for merge process label Oct 6, 2021
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Oct 6, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Oct 6, 2021
@gbaned gbaned added ready to pull PR ready for merge process and removed ready to pull PR ready for merge process labels Oct 19, 2021
@mihaimaruseac
Copy link
Collaborator

Should be handled already by d81b135

PR Queue automation moved this from Approved by Reviewer to Closed/Rejected Oct 27, 2021
@google-ml-butler google-ml-butler bot removed the ready to pull PR ready for merge process label Oct 27, 2021
@yongtang yongtang deleted the 51908-tf.pad branch October 27, 2021 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes comp:core issues related to core part of tensorflow prtype:bugfix PR to fix a bug size:S CL Change Size: Small
Projects
PR Queue
  
Closed/Rejected
Development

Successfully merging this pull request may close these issues.

tf.pad crashes with large paddings
5 participants