torch.cuda.memory.memory_stats_as_nested_dict# torch.cuda.memory.memory_stats_as_nested_dict(device=None)[source]# Return the result of memory_stats() as a nested dictionary. Return type dict[str, Any]