-
Notifications
You must be signed in to change notification settings - Fork 0
Various fixes and improvements and fixes mostly for nemo #6
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
Conversation
| self.device = self.device if self.device else 0 | ||
| if self.device == "cuda" or self.device == "gpu": | ||
| self.device = 0 | ||
| if self.device != "cpu": | ||
| get_num_gpus() | ||
| self.device = ALL_GPU_INDICES[self.device] |
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.
This part is weird.
You don't check that self.device is an index, in the correct range (from the output of get_num_gpus)
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.
It will throw an error if it is not in the correct range since it will be out of range for ALL_GPU_INDICES which is set by calling get_num_gpus()
No description provided.