Sparse CSR: Implement unary ufuncs (with 0->0 correspondence) (#69292)
Summary:
This PR attempts to add support for unary ufuncs (with 0->0 correspondence) for Sparse CSR Layout.
Ops supported: `['abs', 'asin', 'asinh', 'atan', 'atanh', 'ceil', 'conj_physical', 'floor', 'log1p', 'neg', 'round', 'sin', 'sinh', 'sign', 'sgn', 'signbit', 'tan', 'tanh', 'trunc', 'expm1', 'sqrt', 'angle', 'isinf', 'isposinf', 'isneginf', 'isnan', 'erf', 'erfinv']`
cc nikitaved pearu cpuhrsch IvanYashchuk peterbell10
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69292
Reviewed By: pbelevich
Differential Revision: D32805514
Pulled By: cpuhrsch
fbshipit-source-id: 9ae20817e77a36d3aa6c5afa532b9dc3b8cf1dd3