-
Notifications
You must be signed in to change notification settings - Fork 480
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
Dynamo (openxla
) fails when returning tensor.expand
.
#5837
Comments
seems like another storage/stride issue? |
I don't think this is the case. I think the problem here is that, for some reason, AOTAutograd expects the output to be a view of the input. However, instead of calling |
oh... I think expand is one of those ops that suppose to be view but we didn't implement it as a view.. Can you check if that's the case? |
Not sure. As far as I can see, given that |
🐛 Bug
In the following code,
foo
is a function that tries to expand the input tensorx
[3] into a [2, 3] tensor.Full Error Dump
Affected Benchmark
hf_Reformer
Environment
63fc48257a02f8e28b79d13def7a7139589d4176
(Nov 2)d5d023063bfa8ecb4629f621f9b5890bc8396f58
(Nov 9)Additional context
At first, this issue gets to the same error as #5719. However, after surfacing the error to tracing-time (instead of lowering-time), I get the following error:
This looks really odd. Here, what I think AOTAutograd is thinking the result is a view. Then, it's trying to restride/reshape the input tensor to the specs of the output. In reality, however, the result is not a view because we call
expand_copy_symint
.The text was updated successfully, but these errors were encountered: