returnn 1.20250812.202710__py3-none-any.whl → 1.20250814.205214__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 returnn might be problematic. Click here for more details.
- returnn/PKG-INFO +1 -1
- returnn/_setup_info_generated.py +2 -2
- returnn/datasets/distrib_files.py +4 -3
- returnn/datasets/multi_proc.py +5 -4
- {returnn-1.20250812.202710.dist-info → returnn-1.20250814.205214.dist-info}/METADATA +1 -1
- {returnn-1.20250812.202710.dist-info → returnn-1.20250814.205214.dist-info}/RECORD +9 -9
- {returnn-1.20250812.202710.dist-info → returnn-1.20250814.205214.dist-info}/LICENSE +0 -0
- {returnn-1.20250812.202710.dist-info → returnn-1.20250814.205214.dist-info}/WHEEL +0 -0
- {returnn-1.20250812.202710.dist-info → returnn-1.20250814.205214.dist-info}/top_level.txt +0 -0
returnn/PKG-INFO
CHANGED
returnn/_setup_info_generated.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
version = '1.
|
|
2
|
-
long_version = '1.
|
|
1
|
+
version = '1.20250814.205214'
|
|
2
|
+
long_version = '1.20250814.205214+git.26a4c87'
|
|
@@ -6,6 +6,7 @@ https://github.com/rwth-i6/returnn/issues/1519
|
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
|
+
from collections import deque
|
|
9
10
|
from typing import Union, Optional, Any, Callable, Sequence, Tuple, List, Dict
|
|
10
11
|
import os
|
|
11
12
|
import sys
|
|
@@ -636,7 +637,7 @@ def _worker_proc_loop(
|
|
|
636
637
|
dataset = init_dataset(dataset_dict)
|
|
637
638
|
|
|
638
639
|
got_init_seq_order = False
|
|
639
|
-
cache:
|
|
640
|
+
cache: deque[DatasetSeq] = deque()
|
|
640
641
|
next_seq_idx = 0
|
|
641
642
|
|
|
642
643
|
# noinspection PyShadowingNames
|
|
@@ -701,7 +702,7 @@ def _worker_proc_loop(
|
|
|
701
702
|
elif msg == "get_data_seq":
|
|
702
703
|
seq_idx = kwargs["seq_idx"]
|
|
703
704
|
while cache and cache[0].seq_idx < seq_idx:
|
|
704
|
-
cache.
|
|
705
|
+
cache.popleft()
|
|
705
706
|
res = _get(seq_idx)
|
|
706
707
|
parent_conn.send(("data_seq", res))
|
|
707
708
|
elif msg == "init_seq_order":
|
|
@@ -714,7 +715,7 @@ def _worker_proc_loop(
|
|
|
714
715
|
parent_conn.send(("num_seqs", num_seqs))
|
|
715
716
|
got_init_seq_order = True
|
|
716
717
|
next_seq_idx = 0
|
|
717
|
-
cache
|
|
718
|
+
cache.clear()
|
|
718
719
|
else:
|
|
719
720
|
raise Exception(f"unknown msg {msg!r}")
|
|
720
721
|
except KeyboardInterrupt: # when parent dies
|
returnn/datasets/multi_proc.py
CHANGED
|
@@ -3,6 +3,7 @@ Multi-processing dataset
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
|
+
from collections import deque
|
|
6
7
|
from typing import Optional, Any, Dict, List
|
|
7
8
|
import sys
|
|
8
9
|
import gc
|
|
@@ -234,7 +235,7 @@ class MultiProcDataset(CachedDataset2):
|
|
|
234
235
|
dataset: Optional[Dataset] = None
|
|
235
236
|
|
|
236
237
|
got_init_seq_order = False
|
|
237
|
-
cache
|
|
238
|
+
cache: deque[DatasetSeq] = deque()
|
|
238
239
|
next_seq_idx = 0
|
|
239
240
|
|
|
240
241
|
# noinspection PyShadowingNames
|
|
@@ -299,7 +300,7 @@ class MultiProcDataset(CachedDataset2):
|
|
|
299
300
|
elif msg == "get_data_seq":
|
|
300
301
|
seq_idx = kwargs["seq_idx"]
|
|
301
302
|
while cache and cache[0].seq_idx < seq_idx:
|
|
302
|
-
cache.
|
|
303
|
+
cache.popleft()
|
|
303
304
|
res = _get(seq_idx)
|
|
304
305
|
parent_conn.send(("data_seq", res))
|
|
305
306
|
elif msg == "init":
|
|
@@ -372,11 +373,11 @@ class MultiProcDataset(CachedDataset2):
|
|
|
372
373
|
raise ValueError(f"{MultiProcDataset.__name__}: unknown sharding_method: {sharding_method}")
|
|
373
374
|
got_init_seq_order = True
|
|
374
375
|
next_seq_idx = 0
|
|
375
|
-
cache
|
|
376
|
+
cache.clear()
|
|
376
377
|
elif msg == "finish_epoch":
|
|
377
378
|
got_init_seq_order = False
|
|
378
379
|
next_seq_idx = 0
|
|
379
|
-
cache
|
|
380
|
+
cache.clear()
|
|
380
381
|
if dataset:
|
|
381
382
|
dataset.finish_epoch(**kwargs)
|
|
382
383
|
if kwargs["free_resources"]:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
returnn/PKG-INFO,sha256=
|
|
1
|
+
returnn/PKG-INFO,sha256=dDWKCPCaWRWqMS1-os5IZOo9uFYqHjXcDFKcI19Hqzo,5215
|
|
2
2
|
returnn/__init__.py,sha256=biBtRsM0WZ406vShaeH-9WFoqJ8XwTbn6g0EeFJ7l8E,1012
|
|
3
3
|
returnn/__main__.py,sha256=lHyZcu_0yc9f7Vf_Kfdy9PmeU0T76XVXnpalHi5WKro,31740
|
|
4
4
|
returnn/__old_mod_loader__.py,sha256=nvsNY-xELdS_IPNkv66Q9Rmvg4dbGW0-EBRDcCmctos,7654
|
|
5
5
|
returnn/__setup__.py,sha256=22kQn2fh11iPM0hLb2Fy5sLmoU1JGvmDxXRYuRgQkwU,4659
|
|
6
|
-
returnn/_setup_info_generated.py,sha256=
|
|
6
|
+
returnn/_setup_info_generated.py,sha256=Z6UV10sIpgDmM1cDSqz87OBlBD3G32Ss3yF09lnHfnQ,77
|
|
7
7
|
returnn/config.py,sha256=3tmKhB6FnQZaNdtcYsiB61JnEY--iZ2qmJ4yq0b6tE0,29140
|
|
8
8
|
returnn/forward_iface.py,sha256=A_OJiaXsX4MlXQRzST86ylyxSUZbC402PQL1REcqHjM,911
|
|
9
9
|
returnn/learning_rate_control.py,sha256=ZvWryAn_tv9DhV8sh1LV3eE34Yltl3On3mYZAG4hR9s,34684
|
|
@@ -17,13 +17,13 @@ returnn/datasets/basic.py,sha256=_42fQztTZq7jNQrWdFBwulB1bNta17LOTyrD8XJ-7_E,730
|
|
|
17
17
|
returnn/datasets/bundle_file.py,sha256=KQNrS1MSf-4_idlK0c0KFwON-f5sEK0sWU15WpoMYpE,2380
|
|
18
18
|
returnn/datasets/cached.py,sha256=RyefRjSDdp-HveK-2vLy2C6BIHcpqQ_lNvUKlIa4QAI,25412
|
|
19
19
|
returnn/datasets/cached2.py,sha256=oJOq2lWRQpxm6kyUKW1w5qZBd4kdKEpwM7KY_QnXbq4,11922
|
|
20
|
-
returnn/datasets/distrib_files.py,sha256=
|
|
20
|
+
returnn/datasets/distrib_files.py,sha256=MA4BuqJEyen-3aA_naS9RWOHrP3OjVjP63VeWfLWigs,30233
|
|
21
21
|
returnn/datasets/generating.py,sha256=9U_w6URIrv-Rb-hDbPOzYW9qYXzJbw32N6G268IKyoM,99833
|
|
22
22
|
returnn/datasets/hdf.py,sha256=v5sjBenURR9Z-g7AQ9tsL84yDSye5RtbLpym3M6HSDE,67833
|
|
23
23
|
returnn/datasets/lm.py,sha256=rQ3jV43lSnlGkKu7m5jTTH7aK0BOMXQocsHfJ8OGec8,99950
|
|
24
24
|
returnn/datasets/map.py,sha256=kOBJVZmwDhLsOplzDNByIfa0NRSUaMo2Lsy36lBvxrM,10907
|
|
25
25
|
returnn/datasets/meta.py,sha256=6XPPxhiNSxWw9Hu5Z6wG8dD9Zk82FqiI-k9HGQSTKgw,95658
|
|
26
|
-
returnn/datasets/multi_proc.py,sha256=
|
|
26
|
+
returnn/datasets/multi_proc.py,sha256=3kZNXbwfuEdQrlOaiY-XnADrQrz7QOqZIQTZUwIWuS8,22614
|
|
27
27
|
returnn/datasets/normalization_data.py,sha256=J3njQCMvWAbIAVPepO2L_Xdau9eWYB7Zyd6STeGzTbc,14615
|
|
28
28
|
returnn/datasets/numpy_dump.py,sha256=wl8bKIKAlff2HPJPtuu5wBg3TLOf16d2wLVB4lLAwTM,5158
|
|
29
29
|
returnn/datasets/postprocessing.py,sha256=6SfT58BxbHYO2QlGzOgIV04Zqkp-kl0B85168DQaB9A,24060
|
|
@@ -253,8 +253,8 @@ returnn/util/sig_proc.py,sha256=Tjz0VOAVyqu2qDCF5HZ1JjALjcFsHcNkcd96WgZeKfE,7265
|
|
|
253
253
|
returnn/util/task_system.py,sha256=y4sMVXQ25Qd2z0rx03uOlXlkE-jbCYC1Sjfn-XlraVU,26003
|
|
254
254
|
returnn/util/train_proc_manager.py,sha256=Pjht28k6uz6BNQ47uW6Gf880iyq5q4wx7P_K2tmoAM8,3266
|
|
255
255
|
returnn/util/watch_memory.py,sha256=BR5P2kvBN6UI81cE0_1WAA6Hd1SByLbBaiDxvLhPOew,4213
|
|
256
|
-
returnn-1.
|
|
257
|
-
returnn-1.
|
|
258
|
-
returnn-1.
|
|
259
|
-
returnn-1.
|
|
260
|
-
returnn-1.
|
|
256
|
+
returnn-1.20250814.205214.dist-info/LICENSE,sha256=ywBD_U2aD4vpuoIgNAsjIGBYydl0tVKll3De0Z8s77c,11041
|
|
257
|
+
returnn-1.20250814.205214.dist-info/METADATA,sha256=dDWKCPCaWRWqMS1-os5IZOo9uFYqHjXcDFKcI19Hqzo,5215
|
|
258
|
+
returnn-1.20250814.205214.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
259
|
+
returnn-1.20250814.205214.dist-info/top_level.txt,sha256=Lsn4WZc5Pbfk0-xDQOgnFCxOoqxL4CyeM3N1TFbJncw,8
|
|
260
|
+
returnn-1.20250814.205214.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|