Skip to content

Commit 6dafa9e

Browse files
aivanoufacebook-github-bot
authored andcommitted
Port users to use torchx.specs.named_resource instead of internal fb module
Summary: Port user code to use ``torchx.specs.named_resource`` Reviewed By: kiukchung Differential Revision: D29067087 fbshipit-source-id: 7bd308cbb8489a276a76eb5503a62e000a6cf181
1 parent 084511e commit 6dafa9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torchx/specs/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from .api import * # noqa: F401 F403
99
from torchx.util.entrypoints import load
1010

11+
GiB: int = 1024
12+
1113

1214
def named_resource(resource: str) -> Resource:
1315
"""

0 commit comments

Comments
 (0)