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