Hypothesis tests: add ability to enforce shape inference (#23935)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/23935
Add parameter to enforce that outputs are inferred
Reviewed By: yinghai
Differential Revision: D16667772
fbshipit-source-id: 44f9c47133749b48c0db25a54f9bd9f4698f3e7d