Fix compiler warnings (#22162)
Summary:
Fix various compiler warnings
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22162
Differential Revision: D16085339
Pulled By: smessmer
fbshipit-source-id: d36a4b334315f1a5942cac46443a7d166ca36d0d