-
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
Correct behavior for argument gpus in Trainer #561
Conversation
@mpariente @Borda we need a test for this |
Almost, but not quite right. Here's what this PR implies
The outcome we actually want is (* means need to fix):
|
Which test would you like? I can write one. |
|
the tables imply that on_gpu should always be a boolean |
With what I commited, on_gpu will always be boolean so that
This is what we want right? |
gpus can also be a string no? |
Yes, of the form |
@mpariente We should also add "0" as a test case. In this case, it should mean 'use GPU 0' since it's evaluated the same as a list. The above does concern me a bit, i'll make an issue to discuss the usage of |
@williamFalcon Any update on what should be done for this to be merged please? |
@mpariente looks great! thanks for the PR |
Thanks. Also, should I make a PR to support With |
This PR fixes #558
Instead of considering that
gpus=0
andgpus=[]
inTrainer
means GPU training, it doesn't. This makes the API more consistent IMO.