torchx-nightly 2024.9.17__py3-none-any.whl → 2024.9.19__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/api.py +20 -0
- {torchx_nightly-2024.9.17.dist-info → torchx_nightly-2024.9.19.dist-info}/METADATA +1 -1
- {torchx_nightly-2024.9.17.dist-info → torchx_nightly-2024.9.19.dist-info}/RECORD +7 -7
- {torchx_nightly-2024.9.17.dist-info → torchx_nightly-2024.9.19.dist-info}/LICENSE +0 -0
- {torchx_nightly-2024.9.17.dist-info → torchx_nightly-2024.9.19.dist-info}/WHEEL +0 -0
- {torchx_nightly-2024.9.17.dist-info → torchx_nightly-2024.9.19.dist-info}/entry_points.txt +0 -0
- {torchx_nightly-2024.9.17.dist-info → torchx_nightly-2024.9.19.dist-info}/top_level.txt +0 -0
torchx/specs/api.py
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
# pyre-strict
|
|
9
9
|
|
|
10
|
+
import asyncio
|
|
10
11
|
import copy
|
|
12
|
+
import inspect
|
|
11
13
|
import json
|
|
12
14
|
import re
|
|
13
15
|
import typing
|
|
@@ -370,6 +372,24 @@ class Role:
|
|
|
370
372
|
mounts: List[Union[BindMount, VolumeMount, DeviceMount]] = field(
|
|
371
373
|
default_factory=list
|
|
372
374
|
)
|
|
375
|
+
overrides: Dict[str, Any] = field(default_factory=dict)
|
|
376
|
+
|
|
377
|
+
# pyre-ignore
|
|
378
|
+
def __getattribute__(self, attrname: str) -> Any:
|
|
379
|
+
if attrname == "overrides":
|
|
380
|
+
return super().__getattribute__(attrname)
|
|
381
|
+
try:
|
|
382
|
+
ov = super().__getattribute__("overrides")
|
|
383
|
+
except AttributeError:
|
|
384
|
+
ov = {}
|
|
385
|
+
if attrname in ov:
|
|
386
|
+
if inspect.isawaitable(ov[attrname]):
|
|
387
|
+
result = asyncio.get_event_loop().run_until_complete(ov[attrname])
|
|
388
|
+
else:
|
|
389
|
+
result = ov[attrname]()
|
|
390
|
+
setattr(self, attrname, result)
|
|
391
|
+
del ov[attrname]
|
|
392
|
+
return super().__getattribute__(attrname)
|
|
373
393
|
|
|
374
394
|
def pre_proc(
|
|
375
395
|
self,
|
|
@@ -83,7 +83,7 @@ torchx/schedulers/ray/__init__.py,sha256=fE0IHi1JJpxsNVBNzWNee2thrNXFFRhY94c80Rx
|
|
|
83
83
|
torchx/schedulers/ray/ray_common.py,sha256=pyNYFvTKVwdjDAeCBNbPwAWwVNmlLOJWExfn90XY8u8,610
|
|
84
84
|
torchx/schedulers/ray/ray_driver.py,sha256=Wl-1jldL8veVKzmYDEeR2va3JSlAjZpFE1h8HWE9YVE,12286
|
|
85
85
|
torchx/specs/__init__.py,sha256=T8xUCz7iVE6OsUL5P4Pzy2B8ZY_YinCVDwUer5Q-XPc,6179
|
|
86
|
-
torchx/specs/api.py,sha256=
|
|
86
|
+
torchx/specs/api.py,sha256=ipALDCFY83vqZ47HxT73ZAQFhHvUcNnzVcJov2B8nzM,37115
|
|
87
87
|
torchx/specs/builders.py,sha256=QDcQrnCO4bdSaiP0216XbCgTsnLutO_1_FW5jDiEIWI,9939
|
|
88
88
|
torchx/specs/file_linter.py,sha256=IeiomB1BgHUlT-ZsvGxar3llY63NOupfLBrOrD_---A,11860
|
|
89
89
|
torchx/specs/finder.py,sha256=MnwxG_UC4a-3X2wQ37ANEQR6D1TvriCLyuVYBh_-wuI,16249
|
|
@@ -115,9 +115,9 @@ torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,
|
|
|
115
115
|
torchx/workspace/api.py,sha256=1heBmPgB-W5Zf9gwViM7NrqvHpZlVYeMN7jpY8Qkytc,5479
|
|
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-2024.9.
|
|
119
|
-
torchx_nightly-2024.9.
|
|
120
|
-
torchx_nightly-2024.9.
|
|
121
|
-
torchx_nightly-2024.9.
|
|
122
|
-
torchx_nightly-2024.9.
|
|
123
|
-
torchx_nightly-2024.9.
|
|
118
|
+
torchx_nightly-2024.9.19.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
|
|
119
|
+
torchx_nightly-2024.9.19.dist-info/METADATA,sha256=2h_DzaOpObiJQ-JdGZNhwDzyzDJhaRF-5JKSmj8hOi8,6169
|
|
120
|
+
torchx_nightly-2024.9.19.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
121
|
+
torchx_nightly-2024.9.19.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
|
|
122
|
+
torchx_nightly-2024.9.19.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
|
|
123
|
+
torchx_nightly-2024.9.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|