torch.mps.driver_allocated_memory torch.mps.driver_allocated_memory() Returns total GPU memory allocated by Metal driver for the process in bytes. Return type: int