-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[NPU] add NPU support #1926
[NPU] add NPU support #1926
Conversation
b5aba4c
to
bb01fdc
Compare
predict.py
Outdated
parser.add_argument( | ||
'--device', | ||
dest='device', | ||
help='Device place to be set, which can be GPU, XPU, CPU', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be GPU, XPU, NPU, CPU?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks.
val.py
Outdated
parser.add_argument( | ||
'--device', | ||
dest='device', | ||
help='Device place to be set, which can be GPU, XPU, CPU', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as the above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[NPU] add NPU support
在 CUDA 和 NPU 环境分别测试了 train.py, val.py, predict.py 的训练、评估、预测功能,是正常的。
XPU 没有环境跑,这里顺带的一起改了一下,是否需要却掉 XPU 的修改?