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