# tensorplay.cuda.mem_get_info

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.mem_get_info.html

# tensorplay.cuda.mem_get_info

tensorplay.cuda.mem_get_info(device: [Any](https://docs.python.org/3/library/typing.html#typing.Any) | [None](https://docs.python.org/3/library/constants.html#None) = None) &#x2192; [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)[[int](https://docs.python.org/3/library/functions.html#int), [int](https://docs.python.org/3/library/functions.html#int)][[source]](../_modules/tensorplay/cuda/memory.html#mem_get_info)

Return the global free and total GPU memory for a given device using cudaMemGetInfo.
