# tensorplay.cuda.memory_reserved Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.memory_reserved.html ```python tensorplay.cuda.memory_reserved(device: Any = None) → int ``` Return the current GPU memory managed by the caching allocator in bytes for a given device. 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 statistic 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).