parameters: (device: Union[Device, int] = None)
return_statement: return reset_peak_memory_stats(device=device)
docstring: r"""Resets the starting point in tracking maximum GPU memory occupied by
      tensors for a given device.
  
      See :func:`~torch.cuda.max_memory_allocated` for details.
  
      Args:
          device (torch.device or int, optional): selected device. Returns
              statistic for the current device, given by :func:`~torch.cuda.current_device`,
              if :attr:`device` is ``None`` (default).
  
      .. warning::
          This function now calls :func:`~torch.cuda.reset_peak_memory_stats`, which resets
          /all/ peak memory stats.
  
      .. note::
          See :ref:`cuda-memory-management` for more details about GPU memory
          management.
docstring_summary: r"""Resets the starting point in tracking maximum GPU memory occupied by
      tensors for a given device.
docstring_tokens: r Resets the starting point in tracking maximum GPU memory occupied by tensors for a given device .
function: def reset_max_memory_allocated(device: Union[Device, int] = None) -> None:
      r"""Resets the starting point in tracking maximum GPU memory occupied by
      tensors for a given device.
  
      See :func:`~torch.cuda.max_memory_allocated` for details.
  
      Args:
          device (torch.device or int, optional): selected device. Returns
              statistic for the current device, given by :func:`~torch.cuda.current_device`,
              if :attr:`device` is ``None`` (default).
  
      .. warning::
          This function now calls :func:`~torch.cuda.reset_peak_memory_stats`, which resets
          /all/ peak memory stats.
  
      .. note::
          See :ref:`cuda-memory-management` for more details about GPU memory
          management.
      """
      warnings.warn(
          "torch.cuda.reset_max_memory_allocated now calls torch.cuda.reset_peak_memory_stats, "
          "which resets /all/ peak memory stats.",
          FutureWarning)
      return reset_peak_memory_stats(device=device)
function_tokens: def reset_max_memory_allocated ( device : Union [ Device , int ] = None ) -> None : warnings . warn ( "torch.cuda.reset_max_memory_allocated now calls torch.cuda.reset_peak_memory_stats, " "which resets /all/ peak memory stats." , FutureWarning ) return reset_peak_memory_stats ( device = device )