We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following the guide, I added trainer args into the parser:
parser = Trainer.add_argparse_args(parser) trainer = Trainer.from_argparse_args(args) $ python main.py --gpus 1 --max_epochs 64 --arbitrary_trainer_arg some_value
Then I got error: TypeError: 'str' object cannot be interpreted as an integer
It's because max_epochs is "str" rather than "int". I think an easy fix would be adding type-info in parser.add_argument in Trainer.add_argparse_args.
The text was updated successfully, but these errors were encountered:
Hi! thanks for your contribution!, great first issue!
Sorry, something went wrong.
Hi!. I think, It's solved here #1139
No branches or pull requests
🐛 Bug
Following the guide, I added trainer args into the parser:
Then I got error:
TypeError: 'str' object cannot be interpreted as an integer
It's because max_epochs is "str" rather than "int". I think an easy fix would be adding type-info in parser.add_argument in Trainer.add_argparse_args.
The text was updated successfully, but these errors were encountered: