Removes redundant method_test entries (#48828)
Summary:
Now that Lilyjjo's [stack of OpInfo updates](https://github.com/pytorch/pytorch/pull/48627) is landed, we can port method_test entries to OpInfos. This PR doesn't port any method_test entries, but it removes redundant entries. These entries previously tested both multi-dim and zero-dim tensors, so a new zero-dim tensor input is added to UnaryUfuncInfo's sample inputs.
To recap, this PR:
- removes method_test() entries that are redundant with OpInfo entries
- adds a new sample input to unary ufunc OpInfos that tests them on 0d tensors
cc kshitij12345 as an fyi. Going forward we should have a goal of not only porting all the MathTestMeta objects to use the OpInfo pattern but also all the current method_test entries. For each entry the function needs to be added as an OpInfo and the inputs need to be added as sample inputs.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/48828
Reviewed By: malfet
Differential Revision: D25336071
Pulled By: mruberry
fbshipit-source-id: 6b3f6c347195233d6b8ad57e2be68fd772663d9b