Skip to content

Commit 1e4db20

Browse files
aivanoufacebook-github-bot
authored andcommitted
Remove unnecessary to upper named resource translation (#349)
Summary: Pull Request resolved: #349 Remove unnecessary `to upper` named resource translation Reviewed By: kiukchung Differential Revision: D32471240 fbshipit-source-id: f299c377c296f2c36ccbe4a6aa831720f5e7ea99
1 parent 2f5de23 commit 1e4db20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchx/components/base/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def _resolve_resource(resource: Union[str, Resource]) -> Resource:
2323
if isinstance(resource, Resource):
2424
return resource
2525
else:
26-
return named_resources[resource.upper()]
26+
return named_resources[resource]
2727

2828

2929
def torch_dist_role(

0 commit comments

Comments
 (0)