Revert D25966661: Support needsOutputs for RecordFunction and ObserverUtil improvements
Test Plan: revert-hammer
Differential Revision:
D25966661 (https://github.com/pytorch/pytorch/commit/0e43a73f76d49f93e91e01117c79df30a608163f)
Original commit changeset: 707886e1f212
fbshipit-source-id: a4e4af29abf622c1e0aaaf7dfb019c045988b4bc