Skip to content
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

Merged
merged 2 commits into from
Apr 1, 2022
Merged

[NPU] add NPU support #1926

merged 2 commits into from
Apr 1, 2022

Conversation

windstamp
Copy link
Contributor

@windstamp windstamp commented Mar 26, 2022

[NPU] add NPU support

在 CUDA 和 NPU 环境分别测试了 train.py, val.py, predict.py 的训练、评估、预测功能,是正常的。

XPU 没有环境跑,这里顺带的一起改了一下,是否需要却掉 XPU 的修改?

predict.py Outdated
parser.add_argument(
'--device',
dest='device',
help='Device place to be set, which can be GPU, XPU, CPU',
Copy link
Collaborator

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?

Copy link
Contributor Author

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',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks.

Copy link
Collaborator

@juncaipeng juncaipeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@juncaipeng juncaipeng merged commit de9c024 into PaddlePaddle:develop Apr 1, 2022
@windstamp windstamp deleted the npu_dev branch April 1, 2022 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants