Small refactor for OpInfo decorators (#62713)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/62713
Test Plan: Imported from OSS
Reviewed By: VitalyFedyunin
Differential Revision: D30327200
Pulled By: heitorschueroff
fbshipit-source-id: 1899293990c8c0a66da88646714b38f1aae9179d