torch.mps.load_metallib
- torch.mps.load_metallib(source)
Loads a precompiled Metal library (.metallib) and returns a shader library object that allows invoking kernels defined in it.
- Parameters:
source – Either raw metallib bytes (
bytes/bytearray) or a filesystem path (/) to a file.