GetPeakMemoryΒΆ Get the peak amount of used memory in bytes. PyTorchApple MLX PyTorchAPI: torch.cuda.max_memory_allocatedStrategy: Direct MappingOfficial Docs βApple MLXAPI: mlx.core.get_peak_memoryStrategy: Direct MappingOfficial Docs β