Clean up some unused variable warnings (#73151)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/73151
Test Plan: Sandcastle
Reviewed By: malfet
Differential Revision: D34365492
fbshipit-source-id: d9eaa2e21aacd8ff0b97152e590d83f682df4667
(cherry picked from commit ca0efc53db568b035049b09f5827387d2dc7e382)