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
[dynamo] Fix aliasing issue for dict.copy that escapes the graph (pytorch#141715)
Dynamo accidentally passed the original `ConstDictVariable.source` to
the result of `dict.copy(...)`, which caused aliasing issue when the
result escapes the graph (e.g., is a return value).
This patch fixes that and adds a regression test.
Pull Request resolved: pytorch#141715
Approved by: https://github.com/jansel
ghstack dependencies: pytorch#141713, pytorch#141714
0 commit comments