Revert D27691509: Replace AutoNonVariableTypeMode with InferenceMode in static runtime.
Test Plan: revert-hammer
Differential Revision:
D27691509 (https://github.com/pytorch/pytorch/commit/d695ba94f66a480f66b1a59163dda847e99b6456)
Original commit changeset: d43db028a399
fbshipit-source-id: 8cfa2f821ef3251b323483691672ed70858d9d68