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 wrong output of tf.stack with 0-dimension tensor #53367

Closed
wants to merge 3 commits into from

Conversation

yongtang
Copy link
Member

@yongtang yongtang commented Dec 9, 2021

This PR tries to address the issue raised in #53300 where
tf.stack will silently output wrong result with 0-dimension tensor.
The issue was that the shape check was skipped when num of output elements
was zero. This PR fixed the issue.

This PR fixes #53300.

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

This PR tries to address the issue raised in 53300 where
tf.stack will silently output wrong result with 0-dimension tensor.
The issue was that the shape check was skipped when num of output elements
was zero. This PR fixed the issue.

This PR fixes 53300.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label Dec 10, 2021
@rthadur rthadur self-assigned this Dec 10, 2021
@gbaned gbaned added the comp:core issues related to core part of tensorflow label Dec 13, 2021
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation Dec 13, 2021
@gbaned gbaned requested a review from penpornk December 31, 2021 17:26
@gbaned gbaned added the prtype:bugfix PR to fix a bug label Feb 22, 2022
PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Feb 22, 2022
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Feb 22, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Feb 22, 2022
@gbaned gbaned added ready to pull PR ready for merge process and removed awaiting review Pull request awaiting review ready to pull PR ready for merge process labels Feb 23, 2022
copybara-service bot pushed a commit that referenced this pull request Feb 23, 2022
PiperOrigin-RevId: 430451556
Change-Id: I3ab3d17d997607c1b7727af1698bdbcde4336f8c
@mihaimaruseac
Copy link
Collaborator

This has landed but GitHub fails to notice that.

PR Queue automation moved this from Approved by Reviewer to Closed/Rejected Feb 23, 2022
@google-ml-butler google-ml-butler bot removed the ready to pull PR ready for merge process label Feb 23, 2022
@yongtang yongtang deleted the 53300-tf.stack branch February 23, 2022 16:49
@bhack
Copy link
Contributor

bhack commented Mar 14, 2022

This has landed but GitHub fails to notice that.

If it fails the detection do we need to manually close the linked issue #53300 ?

@penpornk
Copy link
Member

@bhack Let's do that. I'll close it. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.stack silently output wrong result with 0-dimension tensor
7 participants