# tensorplay.cuda.memory_stats_as_nested_dict

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

# tensorplay.cuda.memory_stats_as_nested_dict

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

Return the result of [memory_stats()](tensorplay.cuda.memory_stats.html#tensorplay.cuda.memory_stats) as a nested dictionary.
