returnn 1.20250620.102515__py3-none-any.whl → 1.20250701.131223__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/util/basic.py +4 -2
- returnn/util/file_cache.py +7 -3
- {returnn-1.20250620.102515.dist-info → returnn-1.20250701.131223.dist-info}/METADATA +1 -1
- {returnn-1.20250620.102515.dist-info → returnn-1.20250701.131223.dist-info}/RECORD +9 -9
- {returnn-1.20250620.102515.dist-info → returnn-1.20250701.131223.dist-info}/LICENSE +0 -0
- {returnn-1.20250620.102515.dist-info → returnn-1.20250701.131223.dist-info}/WHEEL +0 -0
- {returnn-1.20250620.102515.dist-info → returnn-1.20250701.131223.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.20250701.131223'
|
|
2
|
+
long_version = '1.20250701.131223+git.7346de8'
|
returnn/util/basic.py
CHANGED
|
@@ -798,10 +798,12 @@ def model_epoch_from_filename(filename):
|
|
|
798
798
|
assert fn_with_ext_.endswith(potential_ext), "strange? %s, %s" % (filename, potential_ext)
|
|
799
799
|
filename = fn_with_ext_[: -len(potential_ext)]
|
|
800
800
|
break
|
|
801
|
-
m = re.match(".*\\.([0-9]+)", filename)
|
|
801
|
+
m = re.match(".*\\.([0-9]+)", os.path.basename(filename))
|
|
802
802
|
if not m:
|
|
803
803
|
return None
|
|
804
|
-
|
|
804
|
+
epoch = int(m.groups()[0])
|
|
805
|
+
assert epoch > 0
|
|
806
|
+
return epoch
|
|
805
807
|
|
|
806
808
|
|
|
807
809
|
def deep_update_dict_values(d, key, new_value):
|
returnn/util/file_cache.py
CHANGED
|
@@ -471,16 +471,20 @@ def _copy_with_prealloc(src: str, dst: str):
|
|
|
471
471
|
# Prealloc size + 1, see docstring for why.
|
|
472
472
|
#
|
|
473
473
|
# See also `_check_existing_copied_file_maybe_cleanup`.
|
|
474
|
-
|
|
474
|
+
try:
|
|
475
475
|
os.posix_fallocate(dst_file.fileno(), 0, file_size + 1)
|
|
476
|
-
|
|
476
|
+
except AttributeError:
|
|
477
|
+
# posix_fallocate not available (non-Linux unixes), fallback to seek+write
|
|
477
478
|
dst_file.seek(file_size)
|
|
478
479
|
dst_file.write(b"\0")
|
|
479
480
|
dst_file.seek(0)
|
|
480
481
|
with open(src, "rb") as src_file:
|
|
481
|
-
|
|
482
|
+
try:
|
|
482
483
|
os.posix_fadvise(src_file.fileno(), 0, file_size, os.POSIX_FADV_SEQUENTIAL)
|
|
483
484
|
os.posix_fadvise(dst_file.fileno(), 0, file_size, os.POSIX_FADV_SEQUENTIAL)
|
|
485
|
+
except AttributeError:
|
|
486
|
+
# posix_fadvise not available (non-Linux unixes)
|
|
487
|
+
pass
|
|
484
488
|
shutil.copyfileobj(src_file, dst_file)
|
|
485
489
|
dst_file.truncate(file_size)
|
|
486
490
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
returnn/PKG-INFO,sha256=
|
|
1
|
+
returnn/PKG-INFO,sha256=HhZ81gqzWBl944H0m1ciKxs-C22Zrwl8-M-y26f3K3g,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=_rH7q_mBZ72AY8bymhQmw0zMby7RJjzhyKawprtoaGU,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
|
|
@@ -233,12 +233,12 @@ returnn/torch/util/gradient_checkpoint.py,sha256=iLy-FB65DC8O6LxzmMvFjnSdpIVpko8
|
|
|
233
233
|
returnn/torch/util/module.py,sha256=MXHIrF9Isu575DDJIa81212ULKwdqu1oOLxDVZecVSk,1693
|
|
234
234
|
returnn/torch/util/scaled_gradient.py,sha256=C5e79mpqtxdtw08OTSy413TSBSlOertRisc-ioiFIaU,3191
|
|
235
235
|
returnn/util/__init__.py,sha256=UIG1qw4idqhW71BV60ha7h9PktxvEVcBIu0lYRossK8,336
|
|
236
|
-
returnn/util/basic.py,sha256=
|
|
236
|
+
returnn/util/basic.py,sha256=9Ig-7XLtvXk3yfycmBEhdJG-WVNDtoND3DmDyXOl018,142627
|
|
237
237
|
returnn/util/better_exchook.py,sha256=39yvRecluDgYhViwSkaQ8crJ_cBWI63KeEGuK4RKe5w,70843
|
|
238
238
|
returnn/util/bpe.py,sha256=LWFhICZsEOnMwNws0lybPNzKRX6rSr8yKCvP65vjl9Y,19656
|
|
239
239
|
returnn/util/debug.py,sha256=wuRzdg9zB84WWCGyTjmRR_zYypu8gXxlc0nZ6si9OC8,28224
|
|
240
240
|
returnn/util/debug_helpers.py,sha256=0EINLK4uLtoSt5_kHs1M2NIFpMd0S7i4c4rx90U4fJk,2914
|
|
241
|
-
returnn/util/file_cache.py,sha256=
|
|
241
|
+
returnn/util/file_cache.py,sha256=wMZvzFGfdy_Kz5cdJCvp8KYX5lw2-N9lIHIuB0ic2qA,26646
|
|
242
242
|
returnn/util/fsa.py,sha256=k2lJ8tyf_g44Xk1EPVLwDwpP4spoMTqIigDVOWocQHY,59177
|
|
243
243
|
returnn/util/literal_py_to_pickle.py,sha256=3dnjWPeeiDT2xp4bRDgIf9yddx7b1AG7mOKEn_jiSl8,2173
|
|
244
244
|
returnn/util/lru_cache.py,sha256=7Q5H3a8b07E8e1iB7PA9jCpRnxMJZOFS2KO07cy0gqk,11446
|
|
@@ -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.20250701.131223.dist-info/LICENSE,sha256=ywBD_U2aD4vpuoIgNAsjIGBYydl0tVKll3De0Z8s77c,11041
|
|
257
|
+
returnn-1.20250701.131223.dist-info/METADATA,sha256=HhZ81gqzWBl944H0m1ciKxs-C22Zrwl8-M-y26f3K3g,5215
|
|
258
|
+
returnn-1.20250701.131223.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
259
|
+
returnn-1.20250701.131223.dist-info/top_level.txt,sha256=Lsn4WZc5Pbfk0-xDQOgnFCxOoqxL4CyeM3N1TFbJncw,8
|
|
260
|
+
returnn-1.20250701.131223.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|