We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae55901 commit 0255f71Copy full SHA for 0255f71
torchx/runner/api.py
@@ -129,9 +129,9 @@ def __init__(
129
def _get_scheduler_params_from_env(self) -> Dict[str, str]:
130
scheduler_params = {}
131
for key, value in os.environ.items():
132
- lower_case_key = key.lower()
133
- if lower_case_key.startswith("torchx_"):
134
- scheduler_params[lower_case_key.strip("torchx_")] = value
+ key = key.lower()
+ if key.startswith("torchx_"):
+ scheduler_params[key.removeprefix("torchx_")] = value
135
return scheduler_params
136
137
def __enter__(self) -> "Self":
0 commit comments