评价此页

torch.mtia.memory.memory_stats#

torch.mtia.memory.memory_stats(device=None)[source]#

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

参数

device (torch.device, str, or int, optional) – statistics for the current device, given by current_device(), if device is None (default).

返回类型

dict[str, Any]