torch.cuda.memory.max_memory_cached torch.cuda.memory.max_memory_cached(device=None) Deprecated; see max_memory_reserved(). Return type: int