pytorch
87084643 - [CI][MPS] Actually make grid_sampler_2d available (#101108)

Commit
1 year ago
[CI][MPS] Actually make grid_sampler_2d available (#101108) In CI older MacOS SDK can be used to compile the binary, so add guard for availability of `MPSGraphResizeNearestRoundingModeRoundToEven` enum value. MPS feature availability checks are deliberately done at runtime (by using `is_macos_13_or_newer` and forward-declaring methods in `MPSGraphVenturaOps.h`) rather than at compile time (by using `#ifdef`s). Modify error message and XFAIL condition in `test_mps.py` to fail test due to missing conditional on macOS-13.2 or newer. Pull Request resolved: https://github.com/pytorch/pytorch/pull/101108 Approved by: https://github.com/kulinseth
Author
Committer
Parents
Loading