Fix BC-breaking change introduced by #91499 (#93091)
This fixes BC-breaking changes introduced by https://github.com/pytorch/pytorch/pull/91499
Make enum accept both `min` and `amin` values
Reinstante testing
To reiterate
https://github.com/pytorch/pytorch/blob/454361435c5e6921fcab0b0d43d4ea2cb7cef135/torch/masked/_ops.py#L786
Pull Request resolved: https://github.com/pytorch/pytorch/pull/93091
Approved by: https://github.com/ngimel