wandb 0.19.11__py3-none-macosx_11_0_arm64.whl → 0.19.12rc1__py3-none-macosx_11_0_arm64.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.
- wandb/__init__.py +1 -1
- wandb/__init__.pyi +1 -1
- wandb/bin/wandb-core +0 -0
- wandb/sdk/lib/service_connection.py +16 -20
- wandb/sdk/wandb_setup.py +3 -3
- {wandb-0.19.11.dist-info → wandb-0.19.12rc1.dist-info}/METADATA +1 -1
- {wandb-0.19.11.dist-info → wandb-0.19.12rc1.dist-info}/RECORD +10 -10
- {wandb-0.19.11.dist-info → wandb-0.19.12rc1.dist-info}/WHEEL +0 -0
- {wandb-0.19.11.dist-info → wandb-0.19.12rc1.dist-info}/entry_points.txt +0 -0
- {wandb-0.19.11.dist-info → wandb-0.19.12rc1.dist-info}/licenses/LICENSE +0 -0
wandb/__init__.py
CHANGED
wandb/__init__.pyi
CHANGED
wandb/bin/wandb-core
CHANGED
Binary file
|
@@ -18,10 +18,6 @@ from wandb.sdk.mailbox import HandleAbandonedError, Mailbox, MailboxClosedError
|
|
18
18
|
from wandb.sdk.service import service
|
19
19
|
|
20
20
|
|
21
|
-
class WandbServiceNotOwnedError(Exception):
|
22
|
-
"""Raised when the current process does not own the service process."""
|
23
|
-
|
24
|
-
|
25
21
|
class WandbServiceConnectionError(Exception):
|
26
22
|
"""Raised on failure to connect to the service process."""
|
27
23
|
|
@@ -196,35 +192,35 @@ class ServiceConnection:
|
|
196
192
|
request._info.stream_id = run_id
|
197
193
|
self._client.send_server_request(spb.ServerRequest(inform_start=request))
|
198
194
|
|
199
|
-
def teardown(self, exit_code: int) -> int:
|
200
|
-
"""
|
195
|
+
def teardown(self, exit_code: int) -> int | None:
|
196
|
+
"""Close the connection.
|
197
|
+
|
198
|
+
Stop reading responses on the connection, and if this connection owns
|
199
|
+
the service process, send a teardown message and wait for it to shut
|
200
|
+
down.
|
201
201
|
|
202
202
|
This may only be called once.
|
203
203
|
|
204
204
|
Returns:
|
205
|
-
The exit code of the service process
|
206
|
-
|
207
|
-
Raises:
|
208
|
-
WandbServiceNotOwnedError: If the current process did not start
|
209
|
-
the service process.
|
205
|
+
The exit code of the service process, or None if the process was
|
206
|
+
not owned by this connection.
|
210
207
|
"""
|
211
|
-
if
|
212
|
-
raise
|
213
|
-
"Cannot tear down service started by different process",
|
214
|
-
)
|
215
|
-
|
216
|
-
assert not self._torn_down
|
208
|
+
if self._torn_down:
|
209
|
+
raise AssertionError("Already torn down.")
|
217
210
|
self._torn_down = True
|
218
211
|
|
219
212
|
if self._cleanup:
|
220
213
|
self._cleanup()
|
221
214
|
|
222
|
-
# Clear the service token to prevent new connections from being made.
|
223
|
-
service_token.clear_service_token()
|
224
|
-
|
225
215
|
# Stop reading responses on the socket.
|
226
216
|
self._router.join()
|
227
217
|
|
218
|
+
if not self._proc:
|
219
|
+
return None
|
220
|
+
|
221
|
+
# Clear the service token to prevent new connections to the process.
|
222
|
+
service_token.clear_service_token()
|
223
|
+
|
228
224
|
self._client.send_server_request(
|
229
225
|
spb.ServerRequest(
|
230
226
|
inform_teardown=spb.ServerInformTeardownRequest(
|
wandb/sdk/wandb_setup.py
CHANGED
@@ -307,12 +307,12 @@ class _WandbSetup:
|
|
307
307
|
if not self._connection:
|
308
308
|
return
|
309
309
|
|
310
|
-
internal_exit_code = self._connection.teardown(exit_code or 0)
|
311
|
-
|
312
310
|
# Reset to None so that setup() creates a new connection.
|
311
|
+
connection = self._connection
|
313
312
|
self._connection = None
|
314
313
|
|
315
|
-
|
314
|
+
internal_exit_code = connection.teardown(exit_code or 0)
|
315
|
+
if internal_exit_code not in (None, 0):
|
316
316
|
sys.exit(internal_exit_code)
|
317
317
|
|
318
318
|
def ensure_service(self) -> ServiceConnection:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: wandb
|
3
|
-
Version: 0.19.
|
3
|
+
Version: 0.19.12rc1
|
4
4
|
Summary: A CLI and library for interacting with the Weights & Biases API.
|
5
5
|
Project-URL: Source, https://github.com/wandb/wandb
|
6
6
|
Project-URL: Bug Reports, https://github.com/wandb/wandb/issues
|
@@ -1,15 +1,15 @@
|
|
1
1
|
package_readme.md,sha256=U9047nyMDICgctm1HLm4HfXwFnFKsEn2m77hsYPUZ1I,4298
|
2
|
-
wandb-0.19.
|
3
|
-
wandb-0.19.
|
4
|
-
wandb-0.19.
|
5
|
-
wandb-0.19.
|
6
|
-
wandb-0.19.
|
2
|
+
wandb-0.19.12rc1.dist-info/RECORD,,
|
3
|
+
wandb-0.19.12rc1.dist-info/WHEEL,sha256=B_HTF0nESsbkeA2UeB8YgKrtPrxyKFORYURx7Qxu8Xw,101
|
4
|
+
wandb-0.19.12rc1.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
|
5
|
+
wandb-0.19.12rc1.dist-info/METADATA,sha256=6_-6ZD4DcnylO-nhLQ4d4E5oBwkiwCvym50u4qW7EP8,10262
|
6
|
+
wandb-0.19.12rc1.dist-info/licenses/LICENSE,sha256=izOKRJpGOx1PrJiGOKR0HsNdlB5JdH2d0Z4P7a7ssTc,1081
|
7
7
|
wandb/env.py,sha256=c0iAMhkUsNayCAno7gbs8NTZ_4OKoqWW94Uip7Dc9ZI,14182
|
8
|
-
wandb/__init__.pyi,sha256=
|
8
|
+
wandb/__init__.pyi,sha256=4ngOvMcsz4c6J-4lu7LOE1R6WfMPW15H1ywVc2UhQpI,48328
|
9
9
|
wandb/util.py,sha256=ci-aL--1ukiH4tBr2Hz_T9CKok_2Fev90D-qY5V0R8U,63815
|
10
10
|
wandb/wandb_run.py,sha256=CNh9S6uubFk8FphQjzkbvedyyGCN9aBEsRBKjy8tqqs,155
|
11
11
|
wandb/_iterutils.py,sha256=bOhOrOENEDzOMtyQqHysivzHri9axcVlCfXt4Ai1ot8,1545
|
12
|
-
wandb/__init__.py,sha256=
|
12
|
+
wandb/__init__.py,sha256=h-BqHsfabAKDyqLt8M3IOEPcElSA0IXpkhPfdRpM7nk,7151
|
13
13
|
wandb/data_types.py,sha256=M-wqAO0FtIqvj28556u3h4nzSwlRcbxhXoX0B9jlJSo,2283
|
14
14
|
wandb/wandb_controller.py,sha256=SksJdgwn14PpnUoIaBjJ9Ki4Nksl9BpQGGn42hT0xZg,24936
|
15
15
|
wandb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -104,7 +104,7 @@ wandb/proto/v3/wandb_base_pb2.py,sha256=_nsr_HW4Fdz62-KiXGo6Dw0_9bwdXz07auZkkH2Q
|
|
104
104
|
wandb/proto/v3/wandb_internal_pb2.py,sha256=gl6w1yX_AFcT6wc2OuLzDe2Kj0lDU8sIKHs_iAuP4OM,117112
|
105
105
|
wandb/proto/v3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
106
106
|
wandb/proto/v3/wandb_telemetry_pb2.py,sha256=8rk-fz4BYRyV7qIGAdG9TZ6hEd5KEP8LGd58VsQU5IE,14213
|
107
|
-
wandb/bin/wandb-core,sha256=
|
107
|
+
wandb/bin/wandb-core,sha256=primXVZdt4C3RLoSpZ15HELTYRO4YSfSAFPOxLM4HZA,48468770
|
108
108
|
wandb/bin/gpu_stats,sha256=VFR_uL33-kFgyJj_PK6QuavITjB6W5eu2IB__sampXc,9227696
|
109
109
|
wandb/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
110
110
|
wandb/integration/yolov8/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -217,7 +217,7 @@ wandb/sdk/wandb_login.py,sha256=SwbajDUYM_wrKQuBUyyN0Jsyt24Pq0gApJYLfcTmb-g,1128
|
|
217
217
|
wandb/sdk/wandb_metric.py,sha256=a3GiQXr6H18m81uobYjlJaC8CL8iANzI42qxkxfZsDs,3268
|
218
218
|
wandb/sdk/wandb_require.py,sha256=eYDG4oH1pwik2tHJVEdvivo4R2RypoITFomgr7umMhc,3104
|
219
219
|
wandb/sdk/wandb_sweep.py,sha256=Sg_JqxVzmjUBvii41azpdr-c6RPwHOBnSha8k7jrRhk,4028
|
220
|
-
wandb/sdk/wandb_setup.py,sha256=
|
220
|
+
wandb/sdk/wandb_setup.py,sha256=Yk9GlIik9AAChofQUvtkivDnlCiqiHM9-K1eJ03OWtw,15240
|
221
221
|
wandb/sdk/wandb_require_helpers.py,sha256=ZmKv5aXXHDTTU6nYHMLKW4_pt9X-PlaMtbRJl77kHX8,1331
|
222
222
|
wandb/sdk/integration_utils/data_logging.py,sha256=DDFtDaUu50aeTTgxCHHYd2f85guqqf2xfEOburRlwwQ,19533
|
223
223
|
wandb/sdk/integration_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -463,7 +463,7 @@ wandb/sdk/lib/hashutil.py,sha256=aU8YsAgkTcYDlqshfcDjItiO2s9lqq2YdKt7RoA2adQ,276
|
|
463
463
|
wandb/sdk/lib/wb_logging.py,sha256=9km7TAnJRSwBTQaFSYA4BmQZV3_Gb0y1PBlzqEOdUHA,4839
|
464
464
|
wandb/sdk/lib/module.py,sha256=PWxpFqOYmLyKPF-VgfINZXzkFxDcoQVunVDVNWNnbxQ,2098
|
465
465
|
wandb/sdk/lib/handler_util.py,sha256=mT9CKsmboq4lPWElsi4uo9ORHhx6OYTr7KY2QtgbM6M,589
|
466
|
-
wandb/sdk/lib/service_connection.py,sha256=
|
466
|
+
wandb/sdk/lib/service_connection.py,sha256=J6WHS95CdloYT-C_KgkuQa9pJBXkp23mobhAG1BC9JQ,7352
|
467
467
|
wandb/sdk/lib/progress.py,sha256=GakG9R_mJxVx8zG8atVHKydDZt0uRFEPwls7b3hUpsc,10652
|
468
468
|
wandb/sdk/lib/gql_request.py,sha256=-KRTtT2zqn7pTOBcl41IBdbvQ25YCrxVurROpRqrWqw,2399
|
469
469
|
wandb/sdk/lib/asyncio_compat.py,sha256=zBC5yVXTPryiyK129ml56CW0PJE7vFm1N00Od5_WiKc,6579
|
File without changes
|
File without changes
|
File without changes
|