torch.memory_stats

torch.mtia.memory_stats(device=None)[源代码]

为指定设备返回MTIA内存分配器统计信息的字典。

参数

device (torch.deviceint, 可选) – 当 device 为 None(默认值)时,表示当前设备的统计信息由 current_device() 提供。

返回类型

Dict[str, Any]

本页目录