Prompt48 commited on
Commit
0d1c8be
·
verified ·
1 Parent(s): 35f3d9a

Upload edit\Qwen3-TTS-test\.venv\Lib\site-packages\torch\include\ATen\xpu\XPUDevice.h with huggingface_hub

Browse files
edit//Qwen3-TTS-test//.venv//Lib//site-packages//torch//include//ATen//xpu//XPUDevice.h ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ #include <ATen/Context.h>
4
+ #include <c10/xpu/XPUFunctions.h>
5
+
6
+ namespace at::xpu {
7
+
8
+ inline Device getDeviceFromPtr(void* ptr) {
9
+ auto device = c10::xpu::get_device_idx_from_pointer(ptr);
10
+ return {c10::DeviceType::XPU, device};
11
+ }
12
+
13
+ } // namespace at::xpu