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

fix: use store_true on argparse in nlp example #183

Merged
merged 1 commit into from
Oct 11, 2021
Merged

fix: use store_true on argparse in nlp example #183

merged 1 commit into from
Oct 11, 2021

Conversation

monologg
Copy link
Contributor

@monologg monologg commented Oct 9, 2021

In example, it makes error when using the commands below.

python ./nlp_example.py --cpu
python ./nlp_example.py --fp16

So fixed the argparse option as --store_true, which is also same in cv_example.py

parser.add_argument("--fp16", action="store_true", help="If passed, will use FP16 training.")
parser.add_argument("--cpu", action="store_true", help="If passed, will train on the CPU.")

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@sgugger sgugger merged commit 34a4e4e into huggingface:main Oct 11, 2021
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