torchx-nightly 2025.3.20__py3-none-any.whl → 2025.3.21__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of torchx-nightly might be problematic. Click here for more details.
- torchx/specs/builders.py +6 -2
- torchx/specs/finder.py +6 -2
- {torchx_nightly-2025.3.20.dist-info → torchx_nightly-2025.3.21.dist-info}/METADATA +1 -1
- {torchx_nightly-2025.3.20.dist-info → torchx_nightly-2025.3.21.dist-info}/RECORD +8 -8
- {torchx_nightly-2025.3.20.dist-info → torchx_nightly-2025.3.21.dist-info}/LICENSE +0 -0
- {torchx_nightly-2025.3.20.dist-info → torchx_nightly-2025.3.21.dist-info}/WHEEL +0 -0
- {torchx_nightly-2025.3.20.dist-info → torchx_nightly-2025.3.21.dist-info}/entry_points.txt +0 -0
- {torchx_nightly-2025.3.20.dist-info → torchx_nightly-2025.3.21.dist-info}/top_level.txt +0 -0
torchx/specs/builders.py
CHANGED
|
@@ -101,7 +101,7 @@ def _merge_config_values_with_args(
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
def parse_args(
|
|
104
|
-
cmpnt_fn: Callable[...,
|
|
104
|
+
cmpnt_fn: Callable[..., Any], # pyre-ignore[2]
|
|
105
105
|
cmpnt_args: List[str],
|
|
106
106
|
cmpnt_defaults: Optional[Dict[str, Any]] = None,
|
|
107
107
|
config: Optional[Dict[str, Any]] = None,
|
|
@@ -130,7 +130,7 @@ def parse_args(
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
def materialize_appdef(
|
|
133
|
-
cmpnt_fn: Callable[...,
|
|
133
|
+
cmpnt_fn: Callable[..., Any], # pyre-ignore[2]
|
|
134
134
|
cmpnt_args: List[str],
|
|
135
135
|
cmpnt_defaults: Optional[Dict[str, Any]] = None,
|
|
136
136
|
config: Optional[Dict[str, Any]] = None,
|
|
@@ -187,6 +187,10 @@ def materialize_appdef(
|
|
|
187
187
|
var_arg = var_arg[1:]
|
|
188
188
|
|
|
189
189
|
appdef = cmpnt_fn(*function_args, *var_arg, **kwargs)
|
|
190
|
+
if not isinstance(appdef, AppDef):
|
|
191
|
+
raise TypeError(
|
|
192
|
+
f"Expected a component that returns `AppDef`, but got `{type(appdef)}`"
|
|
193
|
+
)
|
|
190
194
|
|
|
191
195
|
return appdef
|
|
192
196
|
|
torchx/specs/finder.py
CHANGED
|
@@ -16,7 +16,7 @@ from dataclasses import dataclass
|
|
|
16
16
|
from inspect import getmembers, isfunction
|
|
17
17
|
from pathlib import Path
|
|
18
18
|
from types import ModuleType
|
|
19
|
-
from typing import Callable, Dict, Generator, List, Optional, Union
|
|
19
|
+
from typing import Any, Callable, Dict, Generator, List, Optional, Union
|
|
20
20
|
|
|
21
21
|
from torchx.specs import AppDef
|
|
22
22
|
from torchx.specs.file_linter import get_fn_docstring, TorchxFunctionValidator, validate
|
|
@@ -24,6 +24,7 @@ from torchx.util import entrypoints
|
|
|
24
24
|
from torchx.util.io import read_conf_file
|
|
25
25
|
from torchx.util.types import none_throws
|
|
26
26
|
|
|
27
|
+
|
|
27
28
|
logger: logging.Logger = logging.getLogger(__name__)
|
|
28
29
|
|
|
29
30
|
|
|
@@ -53,7 +54,10 @@ class _Component:
|
|
|
53
54
|
name: str
|
|
54
55
|
description: str
|
|
55
56
|
fn_name: str
|
|
56
|
-
|
|
57
|
+
|
|
58
|
+
# pyre-ignore[4] TODO temporary until PipelineDef is decoupled and can be exposed as type to OSS
|
|
59
|
+
fn: Callable[..., Any]
|
|
60
|
+
|
|
57
61
|
validation_errors: List[str]
|
|
58
62
|
|
|
59
63
|
|
|
@@ -84,9 +84,9 @@ torchx/schedulers/ray/ray_common.py,sha256=pyNYFvTKVwdjDAeCBNbPwAWwVNmlLOJWExfn9
|
|
|
84
84
|
torchx/schedulers/ray/ray_driver.py,sha256=RdaCLfth16ky-5PDVOWRe_RuheWJu9xufWux2F9T7iw,12302
|
|
85
85
|
torchx/specs/__init__.py,sha256=T8xUCz7iVE6OsUL5P4Pzy2B8ZY_YinCVDwUer5Q-XPc,6179
|
|
86
86
|
torchx/specs/api.py,sha256=ISdnfGH1R0-1Ah23UsPOZQT3WH63dIMj9CxA3QRoP0g,38046
|
|
87
|
-
torchx/specs/builders.py,sha256=
|
|
87
|
+
torchx/specs/builders.py,sha256=rejt-X68zxTE_8_MWeoQ30cOj6pJNe4DS9YRhjrSDuA,10127
|
|
88
88
|
torchx/specs/file_linter.py,sha256=OOyDnfg9m_9BiyhXc3T0fhE_-ykKCJ32gxCQGbfT-yE,12157
|
|
89
|
-
torchx/specs/finder.py,sha256=
|
|
89
|
+
torchx/specs/finder.py,sha256=N8EJcxYmG8ZBreB5FgvufGq-CnNOmvVYUpAdflkv7K8,17312
|
|
90
90
|
torchx/specs/named_resources_aws.py,sha256=ISjHtifRJqB8u7PeAMiyLyO_S0WCaZiK-CFF3qe6JDU,11415
|
|
91
91
|
torchx/specs/named_resources_generic.py,sha256=Sg4tAdqiiWDrDz2Lj_pnfsjzGIXKTou73wPseh6j55w,2646
|
|
92
92
|
torchx/specs/test/components/__init__.py,sha256=J8qjUOysmcMAek2KFN13mViOXZxTYc5vCrF02t3VuFU,223
|
|
@@ -115,9 +115,9 @@ torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,
|
|
|
115
115
|
torchx/workspace/api.py,sha256=PtDkGTC5lX03pRoYpuMz2KCmM1ZOycRP1UknqvNb97Y,6341
|
|
116
116
|
torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
|
|
117
117
|
torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
|
|
118
|
-
torchx_nightly-2025.3.
|
|
119
|
-
torchx_nightly-2025.3.
|
|
120
|
-
torchx_nightly-2025.3.
|
|
121
|
-
torchx_nightly-2025.3.
|
|
122
|
-
torchx_nightly-2025.3.
|
|
123
|
-
torchx_nightly-2025.3.
|
|
118
|
+
torchx_nightly-2025.3.21.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
|
|
119
|
+
torchx_nightly-2025.3.21.dist-info/METADATA,sha256=H5AYA_AcfLs_WzWHkwaIRhWWz6Js7YJ2dMWjfB5S03o,6169
|
|
120
|
+
torchx_nightly-2025.3.21.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
121
|
+
torchx_nightly-2025.3.21.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
|
|
122
|
+
torchx_nightly-2025.3.21.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
|
|
123
|
+
torchx_nightly-2025.3.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|