Revert D34011981: [pytorch][PR] remove some spurious warnings fixing
Test Plan: revert-hammer
Differential Revision:
D34011981 (https://github.com/pytorch/pytorch/commit/1bad3c4a84ee474adec7a5c241a983e72284b6f5)
Original commit changeset: 55bedc8a4092
Original Phabricator Diff: D34011981 (https://github.com/pytorch/pytorch/commit/1bad3c4a84ee474adec7a5c241a983e72284b6f5)
fbshipit-source-id: 216643e251597cd7086e7854426f4f189a77adc9
(cherry picked from commit bb3955050062736e44e6163512ee877d751eece0)