評價此頁

torch.mtia.memory.memory_stats#

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

返回給定裝置的 MTIA 記憶體分配器統計資訊的字典。

引數

device (torch.device, str, or int, optional) – 如果 device 為 None (預設),則為當前裝置 current_device() 提供的統計資訊。

返回型別

dict[str, Any]