-
Notifications
You must be signed in to change notification settings - Fork 198
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
Fix for TypeError when --available-accelerators is not specificied in htex process worker pool #3132
Conversation
@@ -824,7 +824,7 @@ def strategyorlist(s: str): | |||
required=True, | |||
help="Whether/how workers should control CPU affinity.") | |||
parser.add_argument("--available-accelerators", type=str, nargs="*", | |||
help="Names of available accelerators") | |||
help="Names of available accelerators, If not given Assumed to be zero accelerators available", default=[]) |
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.
don't capitalize if
and Assumed
here
thanks, I'll try this out in my development environment |
Ok sir, let me know if any changes to be made |
@Harichandra-Prasath, it looks like @benclifford is waiting for you to make the capitalization changes he recommended in his comments. Could you take a look at that, please? Once those changes are made we can merge this PR. |
@yadudoc Made the changes sir. |
All tests are passed sir |
Description
Fix of type error for the argument handling for accelerators-available
Changed Behaviour
There wont be typeError if no arguments are passed for acceleratots-available. Defaulted to zero
Fixes
Fixes #3110
Type of change
Choose which options apply, and delete the ones which do not apply.