pytorch/torch/backends
Nikita Shulga b706c4116d [MPS] Add MacOS 14 runtime check (#115512)
Prerequisite for adding more complex type support and FFT operation

Check using `conjugateWithTensor:name:` selector defined as follows
```objc
/// Returns the complex conjugate of the input tensor elements.
///
/// - Parameters:
///   - tensor: The input tensor.
///   - name: An optional string which serves as an identifier for the operation..
/// - Returns: A valid `MPSGraphTensor` object containing the elementwise result of the applied operation.
-(MPSGraphTensor *) conjugateWithTensor:(MPSGraphTensor *) tensor
                                   name:(NSString * _Nullable) name
MPS_AVAILABLE_STARTING(macos(14.0), ios(17.0), tvos(17.0))
MPS_SWIFT_NAME( conjugate(tensor:name:) );
```

- Rename `isOnMacOS13orNewer(unsigned minor)` hook to `isOnMacOSorNewer(major, minor)`
- Replace `torch._C.__mps_is_on_macos_13_or_newer` with `torch._C._mps_is_on_macos_or_newer`
- Add `torch.backends.mps.is_macos_or_newer` public API
Pull Request resolved: https://github.com/pytorch/pytorch/pull/115512
Approved by: https://github.com/albanD
2023-12-11 21:11:42 +00:00
..
_coreml Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
_nnapi docs: fix docstring errors in quantized modules and others (#112695) 2023-11-07 23:52:16 +00:00
cpu Resolve docstring errors in throughput_benchmark.py, weak.py, _traceback.py, file_baton.py, _contextlib.py, _device.py, cpp_backtrace.py, bundled_inputs.py, run_cpu.py, hooks.py, mobile_optimizer.py, _freeze.py, __init__.py, mkldnn.py, dlpack.py (#113311) 2023-11-15 17:40:04 +00:00
cuda expose sdpa helpers to python (#110496) 2023-11-15 07:34:34 +00:00
cudnn docs: fix docstring errors in quantized modules and others (#112695) 2023-11-07 23:52:16 +00:00
mkl docs: fix docstring errors in quantized modules and others (#112695) 2023-11-07 23:52:16 +00:00
mkldnn docs: fix docstring errors in quantized modules and others (#112695) 2023-11-07 23:52:16 +00:00
mps [MPS] Add MacOS 14 runtime check (#115512) 2023-12-11 21:11:42 +00:00
openmp docs: fix docstring errors in quantized modules and others (#112695) 2023-11-07 23:52:16 +00:00
opt_einsum Resolve docstring errors in throughput_benchmark.py, weak.py, _traceback.py, file_baton.py, _contextlib.py, _device.py, cpp_backtrace.py, bundled_inputs.py, run_cpu.py, hooks.py, mobile_optimizer.py, _freeze.py, __init__.py, mkldnn.py, dlpack.py (#113311) 2023-11-15 17:40:04 +00:00
quantized Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
xeon Resolve docstring errors in throughput_benchmark.py, weak.py, _traceback.py, file_baton.py, _contextlib.py, _device.py, cpp_backtrace.py, bundled_inputs.py, run_cpu.py, hooks.py, mobile_optimizer.py, _freeze.py, __init__.py, mkldnn.py, dlpack.py (#113311) 2023-11-15 17:40:04 +00:00
xnnpack Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
__init__.py Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00