-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Inconsistent eager/tf.function behavior for rank 0 shape in tf.reshape #51241
Comments
I am able to reproduce the error in tensorflow v2.11.0-dev20220829. Please find the gist for your reference here. Thanks! |
@mayou36 |
By "jit" I mean "tf.function" decorated (jitted), not XLA compiled. So it works in eager, but not inside a tf.function. It seems to happen with and without |
@jonas-eschle |
It is. I've updated the gist and it is still broken, even with TF-nightly |
Thank you for raising this issue. We are discussing internally the available options, and we'll update with the result. |
System information
Describe the current behavior
The eager version of
tf.reshape
takes a rank 0 tensor as a shape parameter while the jitted (tf.function
decorated) does not.Describe the expected behavior
It should be consistent, either fail in both or allow in both. To be consistent with other methods, I think it should fail in both.
Contributing
tf.random.uniform
Standalone code to reproduce the issue
executable example here
The text was updated successfully, but these errors were encountered: