# tensorplay.cuda.memory_summary Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.memory_summary.html ```python tensorplay.cuda.memory_summary(device: Any = None, abbreviated: bool = False) → str ``` Return a human-readable printout of the current memory allocator statistics for a given device. This can be useful to display periodically during training, or when handling out-of-memory exceptions. Parameters: - device ([tensorplay.Device](/docs/generated/tensorplay.Device.html#tensorplay.Device) or [int](https://docs.python.org/3/builtins/functions.html#int), optional) – selected device. Returns printout for the current device, given by [current_device()](/docs/generated/tensorplay.cuda.current_device.html#tensorplay.cuda.current_device), if [device](/docs/generated/tensorplay.cuda.device.html#tensorplay.cuda.device) is None (default). - abbreviated ([bool](https://docs.python.org/3/builtins/functions.html#bool), optional) – whether to return an abbreviated summary (default: False).