-
Notifications
You must be signed in to change notification settings - Fork 486
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
Re-land: dynamo expand test with view-replay. #6958
Conversation
test/dynamo/test_dynamo.py
Outdated
@@ -671,6 +676,22 @@ def foo(x): | |||
self.assertEqual(expected.dtype, actual.dtype) | |||
self.assertEqual(expected.device, actual.device) | |||
|
|||
def test_return_expand(self): | |||
_set_view_replay_for_aliased_outputs() |
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.
do we want to leave this options to always true througout the test? If the intention is to always set this to True for PyTorch/XLA, you should set it in https://github.com/pytorch/xla/blob/master/torch_xla/__init__.py .
torch_patches/.torch_pin
Outdated
@@ -0,0 +1 @@ | |||
680a89e2ced8f45b87b7fd0509c07cf6b768be14 |
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.
why do we need a pin? I thought Brian's change already merged to main.
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.
It was reverted.
@JackCaoG @vanbasten23 I'm puzzled by this CI failure. Doesn't TPU CI build take the |
yea TPU CI does not take into pin into account yet. I think it is oK to merge once you remove the pin. @will-cromar FYI |
72426d7
to
2c79b7c
Compare
This PR is a follow-up to #6950, re-introducing the dynamo expand test while setting the
view_replay_for_aliased_outputs
dynamo configuration that uses the outputs of the functionalization step for reconstructing output views.cc @miladm @JackCaoG