Update amax/amin/norm/count_nonzero signatures with int[*]? dim (#83300)

Changes `dim` arg to use `int[*]?` type for the following functions in `native_funcitons.yaml`:
* `amax`
* `amin`
* `norm`
* `frobenius_norm`
* `native_norm`
* `count_nonzero`

Part of #29137

Pull Request resolved: https://github.com/pytorch/pytorch/pull/83300
Approved by: https://github.com/ngimel, https://github.com/albanD, https://github.com/kulinseth
This commit is contained in:
Kurt Mohler
2022-09-27 23:50:01 +00:00
committed by PyTorch MergeBot
parent f1f6cb07e2
commit 8c7c7ed322
18 changed files with 124 additions and 94 deletions

View File

@ -1190,6 +1190,8 @@ class TestNamedTensor(TestCase):
'var_mean',
'nanmean',
'nansum',
'amax',
'amin',
]
if op.__name__ in ops_support_dim_none:
check_output(op(t, None), [])