torch.xpu.memory_stats_as_nested_dict torch.xpu.memory_stats_as_nested_dict(device=None)[源代码] 返回 memory_stats() 方法的嵌套字典形式的结果。 返回类型 Dict[str, Any]