-
Notifications
You must be signed in to change notification settings - Fork 25
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
What's the right way to use torch dispatch? #35
Comments
Hi, Sorry for the long time to answer. |
Hi albanD. How to rename Tensor.device.type as "my_device"?We can create a "my_device" tensor by wrapping a "meta" tensor, but we cannot modify its device_type. As we all know that "tensor.device.type == 'my_device' " is a common judgement statement for pytorch users. |
When you call
Did you properly called Note: leaving this issue open to track the conversation more easily on my end. |
If I want to enable our new device like "NPU" based on PyTorch, do I still need register a dispatch key(just like pytorch/pytorch#75863 does) when using torch_dispatch?
The text was updated successfully, but these errors were encountered: