Add noop register hook (#60685)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/60685
Test Plan: Imported from OSS
Reviewed By: mruberry
Differential Revision: D29466224
fbshipit-source-id: 68c8aa022ccffeefd45062f1443d15c9a6824f3d