pytorch
5de3ead7 - [MPS] Add optional `minor` argument to `is_macos13_or_newer` (#95065)

Commit
1 year ago
[MPS] Add optional `minor` argument to `is_macos13_or_newer` (#95065) Will be needed if one wants to make accurate XFAIL validation I.e. `torch.backends.mps.is_macos13_or_newer()` will return True if PyTorch is running on MacOS 13.0 or newer, `torch.backends.mps.is_macos13_or_newer(1)` will return True if running on MacOS 13.1 or newer and `torch.backends.mps.is_macos13_or_newer(2)` will return True if running on MacOS 13.2 or newer Do not use 13.3 check as `@available` does not really work for shared libraries Pull Request resolved: https://github.com/pytorch/pytorch/pull/95065 Approved by: https://github.com/albanD
Author
Committer
Parents
Loading