TST Adds inplace checks to module_info (#63739)
authorThomas J. Fan <thomasjpfan@gmail.com>
Wed, 8 Sep 2021 18:00:11 +0000 (11:00 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 8 Sep 2021 18:08:12 +0000 (11:08 -0700)
commit43c0f033fc39cd81c5577d90f4454969753706ef
treeefb638dc453c6432e238460ddc13768b86ea65bf
parenta5ad08ec704a3f765814eacf5c393e871c0174e1
TST Adds inplace checks to module_info (#63739)

Summary:
Follow up to https://github.com/pytorch/pytorch/pull/61935

This PR adds inplace checks to `test_modules`. This version checks the constructor for `inplace` and performs the check automatically.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/63739

Reviewed By: saketh-are

Differential Revision: D30737774

Pulled By: jbschlosser

fbshipit-source-id: 8813534511e9296c8424d1ca878412726ddd4043
test/test_modules.py
torch/testing/_internal/common_modules.py