Skip to content

Commit

Permalink
Fix up targets for devices.py and specs folder
Browse files Browse the repository at this point in the history
Differential Revision: D59403775

Pull Request resolved: #930
  • Loading branch information
manav-a committed Jul 5, 2024
1 parent 9981bfa commit 744571e
Showing 1 changed file with 47 additions and 8 deletions.
55 changes: 47 additions & 8 deletions torchx/specs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@
import difflib
from typing import Callable, Dict, Optional

from torchx.specs.named_resources_aws import NAMED_RESOURCES as AWS_NAMED_RESOURCES
from torchx.specs.named_resources_generic import (
NAMED_RESOURCES as GENERIC_NAMED_RESOURCES,
)
from torchx.util.entrypoints import load_group

from .api import ( # noqa: F401 F403
from torchx.specs.api import (
ALL,
AppDef,
AppDryRunInfo,
Expand Down Expand Up @@ -52,7 +46,13 @@
UnknownSchedulerException,
VolumeMount,
)
from .builders import make_app_handle, materialize_appdef, parse_mounts # noqa
from torchx.specs.builders import make_app_handle, materialize_appdef, parse_mounts

from torchx.specs.named_resources_aws import NAMED_RESOURCES as AWS_NAMED_RESOURCES
from torchx.specs.named_resources_generic import (
NAMED_RESOURCES as GENERIC_NAMED_RESOURCES,
)
from torchx.util.entrypoints import load_group

GiB: int = 1024

Expand Down Expand Up @@ -183,3 +183,42 @@ def gpu_x_1() -> Dict[str, Resource]:
"""
return named_resources[res]


__all__ = [
"AppDef",
"AppDryRunInfo",
"AppHandle",
"AppState",
"AppStatus",
"BindMount",
"CfgVal",
"DeviceMount",
"get_type_name",
"is_terminal",
"macros",
"MISSING",
"NONE",
"NULL_RESOURCE",
"parse_app_handle",
"ReplicaState",
"ReplicaStatus",
"Resource",
"RetryPolicy",
"Role",
"RoleStatus",
"runopt",
"runopts",
"UnknownAppException",
"UnknownSchedulerException",
"InvalidRunConfigException",
"MalformedAppHandleException",
"VolumeMount",
"resource",
"get_named_resources",
"named_resources",
"make_app_handle",
"materialize_appdef",
"parse_mounts",
"ALL",
]

0 comments on commit 744571e

Please sign in to comment.