-
Notifications
You must be signed in to change notification settings - Fork 15
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
RuntimeError #1
Comments
Hello, can you provide your codes? |
I used the "simple example" one on your github page and from the repo:
https://github.com/DunZhang/KnowledgeDistillation
…On Fri, May 7, 2021 at 9:21 PM DunZhang ***@***.***> wrote:
Hello Zhang,
First of all, *thank you* for your code!
However, when I try to run it, I get the following error:
RuntimeError: Expected one of cpu, cuda, xpu, mkldnn, opengl, opencl,
ideep, hip, msnpu, xla, vulkan device type at start of device string: h
I'm not sure if you encountered this before or have a solution for it.
Thank you for your time!
Ethan
Hello, can you provide your codes?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHWKQXIIQEEJX67BEGITNY3TMSGYRANCNFSM44LZLFAA>
.
|
[image: image.png]
…On Fri, May 7, 2021 at 9:43 PM Ethan Watanabe-Do ***@***.***> wrote:
I used the "simple example" one on your github page and from the repo:
https://github.com/DunZhang/KnowledgeDistillation
On Fri, May 7, 2021 at 9:21 PM DunZhang ***@***.***> wrote:
> Hello Zhang,
>
> First of all, *thank you* for your code!
>
> However, when I try to run it, I get the following error:
>
> RuntimeError: Expected one of cpu, cuda, xpu, mkldnn, opengl, opencl,
> ideep, hip, msnpu, xla, vulkan device type at start of device string: h
>
> I'm not sure if you encountered this before or have a solution for it.
>
> Thank you for your time!
>
> Ethan
>
> Hello, can you provide your codes?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#1 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHWKQXIIQEEJX67BEGITNY3TMSGYRANCNFSM44LZLFAA>
> .
>
|
@foureyelabs
Please put the codes in the top. |
Please don't apologize, it's me that is sorry for taking up your time.
This didn't solve it for me either unfortunately.
Let me know if you can think of something else.
I'm also happy to pay for your time, if you have paypal or even upwork.
Thank you!
…On Thu, May 13, 2021 at 5:39 AM DunZhang ***@***.***> wrote:
@foureyelabs <https://github.com/foureyelabs>
Sorry to reply you so late.
I tried the simple example in
https://github.com/DunZhang/KnowledgeDistillation and didn't encounter
this question.
According to the error information, the torch may not find the correct
device. You could try the following codes:
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
Please put the codes in the top.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHWKQXPYZFVNU32AODN6VRDTNOM5VANCNFSM44LZLFAA>
.
|
@foureyelabs You can also see this post : https://stackoverflow.com/questions/66427526/runtimeerror-expected-one-of-cpu-cuda-mkldnn-opengl-opencl-ideep-hip-msn If you have any problems, please let me know. |
Hello Zhang,
First of all, thank you for your code!
However, when I try to run it, I get the following error:
RuntimeError: Expected one of cpu, cuda, xpu, mkldnn, opengl, opencl, ideep, hip, msnpu, xla, vulkan device type at start of device string: h
I'm not sure if you encountered this before or have a solution for it.
Thank you for your time!
Ethan
The text was updated successfully, but these errors were encountered: