-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore: rename use_gpu to disable_gpu in TorchAlgo #241
Conversation
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
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.
Thanks for the PR, I have a few comments related to the fact that this change (which I think is a good one) is a bit more than just a renaming, but is offering the option to not use the GPU even if it is available, else, substrafl
will default to the available device in a smart way.
@@ -46,7 +46,7 @@ def __init__( | |||
model=perceptron, | |||
index_generator=nig, | |||
dataset=numpy_torch_dataset, | |||
use_gpu=False, | |||
disable_gpu=True, |
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.
I don't think this is required 🤔
and same for the tests of other implementations
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
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.
Thanks for the PR 🙏
Signed-off-by: ThibaultFy <[email protected]>
closes FL-1677
Companion