You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a configuration knob to AOTAutograd to make it
transform reshape calls into reshape_copy by default, making the
reshape work even if the striding of tensors changes on subsequent
runs. This is not sound if the input/output get modified after this
change, so for safety, we use the new functionalization "freeze storage"
feature to detect if this case happened.
TODO:
- Plumb this as a configuration option so backends can pick what they
want
- Figure out what the fallback strategy should be if the user actually
did mutate the input/output of reshape. One possibility is to try
tracing again but this time without preserving reshapes.
- Teach backends how to compile _reshape_copy
Signed-off-by: Edward Z. Yang <ezyangfb.com>
[ghstack-poisoned]
# The GPU can get stuck in a failure state if somehow the test crashs the GPU microcode. When this
72
+
# happens, we'll try to reset all NVIDIA devices https://github.com/pytorch/pytorch/issues/88388
0 commit comments