pytorch
d6dd67a2 - Dynamo: Use out-of-place binary ops instead of in-place (#95446)

Commit
1 year ago
Dynamo: Use out-of-place binary ops instead of in-place (#95446) Fixes issues with things like: ```python x = 2 x += y.shape[0] ``` resulting in invalid `2 += y.shape[0]` code in the FX graph. Fix: Whenever dynamic shapes are involved, insert the out-of-place op to the FX graph instead of the in-place op. Pull Request resolved: https://github.com/pytorch/pytorch/pull/95446 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading