-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Docs and Tests for "gpus" Trainer Argument #593
Conversation
I think I made a mistake, I should have merged master, not rebase. :( |
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.
Small typo
|
||
|
||
@pytest.mark.gpus_param_tests | ||
@pytest.mark.parametrize(['gpus'], test_parse_gpu_invalid_inputs_data) |
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.
Nice
@Borda I don't understand the error message from travis. Do you know why it fails to install requirements? |
@awaelchli I am going to check it also discussed at #590 |
Before submitting
What does this PR do?
Updates docs for the
gpus
Trainer argument and adds tests for parsing it as discussed in #563.Docs:
I pointed out the difference between gpus=0, gpus=[0] and gpus="0" @jeffling.
Let me know if the column with "Type" is ok or better to be removed.
Tests:
I added tests for all inputs listed in the docs, and also tests for everything else that is not currently supported.
In a follow up PR/Issue, we could discuss the support of the following:
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.