Simplify creation of unary structured kernels. (#54592)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/54592
Test Plan: Imported from OSS
Reviewed By: nikithamalgifb
Differential Revision: D27293362
Pulled By: bdhirsh
fbshipit-source-id: 805f4e321645bc1ad7b8811f4b6daf96775eac9f