Remove unnecessary Node* closures in operator registration
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/27007
Test Plan: Imported from OSS
Differential Revision: D17696525
Pulled By: zdevito
fbshipit-source-id: b329b77afa0e6dbe9cb920a98cf07bb329d01023