Silence compiler warnings (#18912)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18912
We intentionally test a deprecated API, no need to show the warnings here.
Reviewed By: dzhulgakov
Differential Revision: D14792617
fbshipit-source-id: 9ea2a4106d566064283726eed2c274b98f49a2e5