-
Notifications
You must be signed in to change notification settings - Fork 517
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 as_strided symint #1401
Fix as_strided symint #1401
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix!
I'm curious: how did you figure out that updating the yaml file was the correct fix? This is the error I see and it's not obvious to me how this PR fixes it:
|
I built it locally and looked to see what op the error was happening for
It happened to be And reading through that commit, they changed as_strided_copy/scatter to have symint support, so all we needed to do was make sure we were generating the symint versions of those ops too |
"e2e_testing.torchscript.main" should be "e2e_testing.main" to fix the python issue. |
@antoniojkim Is this likely to take longer? If so, we should disable LTC and try this patch offline, so that we don't block folks from merging PRs. |
Can we come up with a generally applicable flow for these situations? I lean toward what Sean proposed of get the "rollback done" (though it's not exactly a rollback in this case) and then fix separately. Is the worry that we might end up committing additional code while the LTC tests are disabled that would break LTC more and make fixing even worse? Or would we also potentially generate releases that are broken for LTC? |
IMHO Revert first. Disable second. Fix third to get a tree green. |
30c3816
to
f35a956
Compare
+1 to getting the build green ASAP and fixing/reenabling it right after. There's perhaps just an implicit agreement among folks here that broken builds are a big deal because they prevent everyone from making progress, but maybe we've never formalized it. There have been some prior discussions about working around API-breaking changes in PyTorch, but I fail to recollect the conclusions. Perhaps we can revisit how to handle PyTorch updates in the Monday meeting? I'm happy to help with changes to our builds/tests, if those are necessary. |
Yeah, I think that is a good idea. I've added a note to discuss this in the community meeting two weeks from now. We can discuss at the developer hour too. |
I'm in favour of this idea as well |
3223bf4
to
e6aa311
Compare
e6aa311
to
a525993
Compare
Signed-off-by: Whitney Tsang <whitneyt@ca.ibm.com>
Upstream PyTorch pushed out a change to
as_strided_copy
andas_strided_scatter
for their Symbolic Integer effort. This caused a break in LTC.Adding those ops to the symint list should fix things.
Also adding support for
hardtanh
to pass tests#1396