Enable named inference for some unary pointwise ops (#22267)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22267
ghimport-source-id: 1566df9a20712cada6ea1209e000c5ff757daa14
Test Plan: Imported from OSS
Differential Revision: D16030550
Pulled By: zou3519
fbshipit-source-id: 183ca1d14dc0fb6f1ee6e114b48c2703c61e11ce