torch.xpu.get_device_properties¶ torch.xpu.get_device_properties(device=None)[原始碼][原始碼]¶ 獲取裝置的屬性。 引數 device (torch.device 或 int 或 str) – 返回其屬性的裝置。 返回 裝置的屬性 返回型別 _XpuDeviceProperties