pytorch
c2e9b9ec - TestModule: Don't assume sample inputs version counter is zero (#85734)

Commit
2 years ago
TestModule: Don't assume sample inputs version counter is zero (#85734) The intention of this assert is to check the input tensor's version counter has increased, indicating it was mutated by `m_inplace`. However, the cloning step to create `input_arg_clone` restarts the version counter to zero, so this test may fail if the sample input was ever mutated during its creation. Pull Request resolved: https://github.com/pytorch/pytorch/pull/85734 Approved by: https://github.com/albanD
Author
Committer
Parents
Loading