-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kPrivateUse1请教 #904
Comments
deeplink 目前没有使用 PrivateUse1 backend. 因为deeplink 开发时, PrivateUse1 的能力还很弱, 我们 底层使用的 XPU 设备. |
注册是这样注册吗? |
这样注册报错 Traceback (most recent call last): frame #22: python() [0x5a5bd1] |
uto options = at::TensorOptions().dtype(scalar_type).device(at::kXPU); 之前是这样的,刚刚我 |
不对,return at::from_blob(data, tensor_sizes, tensor_strides); 这样的话他是不是注册cpu了吧? |
应该就是这样用的, 为啥报错可能要 debug看下, 创建 cpu的 tensor肯定不行。 或者可以参考 DIOPI 里有一段抽取自 from_blob 的简化逻辑。 https://github.com/DeepLink-org/DIOPI.dev/blob/main/impl/torch/build_aten.cpp buildATenSafeImpl(), 用来从data构造新 tensor (当然 diopi torch 层因为直接用 aten, 所以新创建的 tensor 是 CUDA, 不是 XPU)。 |
请问kPrivateUse1注册Device是需要自己去注册吗?
The text was updated successfully, but these errors were encountered: