Skip to content

Commit

Permalink
run_qa.py add xpu chioce of device,*test=kunlun (#3046)
Browse files Browse the repository at this point in the history
* run_qa.py add xpu chioce of device,*test=kunlun

* run_qa.py add xpu chioce of device,*test=kunlun
  • Loading branch information
dongfangshenzhu authored Aug 16, 2022
1 parent 42ec8e3 commit 56a8957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model_zoo/ernie-3.0/run_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def parse_args():
help="random seed for initialization")
parser.add_argument(
'--device',
choices=['cpu', 'gpu'],
choices=['cpu', 'gpu', 'xpu'],
default="gpu",
help="Select which device to train model, defaults to gpu.")
parser.add_argument(
Expand Down

0 comments on commit 56a8957

Please sign in to comment.