torch.mps.compile_shader
- torch.mps.compile_shader(source)
Compiles compute shader from source and allows one to invoke kernels defined there from the comfort of Python runtime Example:
>>> lib = torch.mps.compile_shader( ...
Compiles compute shader from source and allows one to invoke kernels defined there from the comfort of Python runtime Example:
>>> lib = torch.mps.compile_shader(
...