torch.mps.current_allocated_memory torch.mps.current_allocated_memory() Returns the current GPU memory occupied by tensors in bytes. Return type: int