-
Notifications
You must be signed in to change notification settings - Fork 505
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
PyTorch XLA .data
assignment fails when the new tensor is a different shape
#3502
Comments
Update: I found that this error is due to the nightly If we only use
gives
in the example above. |
Update: closing this issue went away with the nightly The example above works now with
It seems that the error was only due to a problematic |
Update: there seem to be other problems with |
@ronghanghu Let us know if our side tf update fixed the issue, otherwise I can take another pass of this bug. |
Thanks! I'll checkout the nightly build 20220422 tomorrow and get back to you |
Update: I tried out the latest torch_xla and torch nightly 20220430 wheels that contain #3535, #3541, and tested it against libtpu dev20220413. Now it works well and this error goes away. So it seems that previously the issue was because of the outdated TensorFlow version. Thanks for your help on this! Also, note that the latest public libtpu nightly wheel (as of 04/30/2022 morning PDT) is only |
🐛 Bug
In the latest nightly 20220413 PyTorch XLA build, the shape assignment example in #3392 (comment) is broken again. This is now breaking XLA FSDP implementation in (#3431).
To Reproduce
tpu-vm-pt-1.10
runtime and install the nightly 20220413 environmentwhich gives
Expected behavior
On the previous nightly 20220408 build
this example was working well and prints
as expected (consistent with normal PyTorch behavior on CPU/GPU)
Environment
Additional context
It would be great to create a test case for the example above to guard against future issues.
cc: @JackCaoG
The text was updated successfully, but these errors were encountered: