Revert D31082693: Fix autograd engine checks and update InputMetadata
Test Plan: revert-hammer
Differential Revision:
D31082693 (https://github.com/pytorch/pytorch/commit/9324d682fdb87102d049d0579b433c759e7f998a)
Original commit changeset: cb551cd438c6
fbshipit-source-id: fc60f86b80fc70058984df6bccbf240d27f5843e