Skip to content

Commit 744571e

Browse files
authored
Fix up targets for devices.py and specs folder
Differential Revision: D59403775 Pull Request resolved: #930
1 parent 9981bfa commit 744571e

File tree

1 file changed

+47
-8
lines changed

1 file changed

+47
-8
lines changed

torchx/specs/__init__.py

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@
1515
import difflib
1616
from typing import Callable, Dict, Optional
1717

18-
from torchx.specs.named_resources_aws import NAMED_RESOURCES as AWS_NAMED_RESOURCES
19-
from torchx.specs.named_resources_generic import (
20-
NAMED_RESOURCES as GENERIC_NAMED_RESOURCES,
21-
)
22-
from torchx.util.entrypoints import load_group
23-
24-
from .api import ( # noqa: F401 F403
18+
from torchx.specs.api import (
2519
ALL,
2620
AppDef,
2721
AppDryRunInfo,
@@ -52,7 +46,13 @@
5246
UnknownSchedulerException,
5347
VolumeMount,
5448
)
55-
from .builders import make_app_handle, materialize_appdef, parse_mounts # noqa
49+
from torchx.specs.builders import make_app_handle, materialize_appdef, parse_mounts
50+
51+
from torchx.specs.named_resources_aws import NAMED_RESOURCES as AWS_NAMED_RESOURCES
52+
from torchx.specs.named_resources_generic import (
53+
NAMED_RESOURCES as GENERIC_NAMED_RESOURCES,
54+
)
55+
from torchx.util.entrypoints import load_group
5656

5757
GiB: int = 1024
5858

@@ -183,3 +183,42 @@ def gpu_x_1() -> Dict[str, Resource]:
183183
184184
"""
185185
return named_resources[res]
186+
187+
188+
__all__ = [
189+
"AppDef",
190+
"AppDryRunInfo",
191+
"AppHandle",
192+
"AppState",
193+
"AppStatus",
194+
"BindMount",
195+
"CfgVal",
196+
"DeviceMount",
197+
"get_type_name",
198+
"is_terminal",
199+
"macros",
200+
"MISSING",
201+
"NONE",
202+
"NULL_RESOURCE",
203+
"parse_app_handle",
204+
"ReplicaState",
205+
"ReplicaStatus",
206+
"Resource",
207+
"RetryPolicy",
208+
"Role",
209+
"RoleStatus",
210+
"runopt",
211+
"runopts",
212+
"UnknownAppException",
213+
"UnknownSchedulerException",
214+
"InvalidRunConfigException",
215+
"MalformedAppHandleException",
216+
"VolumeMount",
217+
"resource",
218+
"get_named_resources",
219+
"named_resources",
220+
"make_app_handle",
221+
"materialize_appdef",
222+
"parse_mounts",
223+
"ALL",
224+
]

0 commit comments

Comments
 (0)