43f0ccd1ec406b18be15a935772cc1dc3a86f41d,torch/cuda/memory.py,,max_memory_reserved,#Any#,347

Before Change


        See :ref:`cuda-memory-management` for more details about GPU memory
        management.
    
    return memory_stats(device=device)["reserved_bytes.all.peak"]


def memory_cached(device: Union[Device, int] = None) -> int:
    rDeprecated; see :func:`~torch.cuda.memory_reserved`.

After Change


        See :ref:`cuda-memory-management` for more details about GPU memory
        management.
    
    return memory_stats(device=device).get("reserved_bytes.all.peak", 0)


def memory_cached(device: Union[Device, int] = None) -> int:
    rDeprecated; see :func:`~torch.cuda.memory_reserved`.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: pytorch/pytorch
Commit Name: 43f0ccd1ec406b18be15a935772cc1dc3a86f41d
Time: 2021-01-28
Author: nshulga@fb.com
File Name: torch/cuda/memory.py
Class Name:
Method Name: max_memory_reserved


Project Name: pytorch/pytorch
Commit Name: 43f0ccd1ec406b18be15a935772cc1dc3a86f41d
Time: 2021-01-28
Author: nshulga@fb.com
File Name: torch/cuda/memory.py
Class Name:
Method Name: max_memory_allocated


Project Name: pytorch/pytorch
Commit Name: 43f0ccd1ec406b18be15a935772cc1dc3a86f41d
Time: 2021-01-28
Author: nshulga@fb.com
File Name: torch/cuda/memory.py
Class Name:
Method Name: memory_allocated


Project Name: pytorch/pytorch
Commit Name: 43f0ccd1ec406b18be15a935772cc1dc3a86f41d
Time: 2021-01-28
Author: nshulga@fb.com
File Name: torch/cuda/memory.py
Class Name:
Method Name: memory_reserved