returnn 1.20240701.135153__tar.gz → 1.20240703.11348__tar.gz
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-1.20240701.135153 → returnn-1.20240703.11348}/PKG-INFO +1 -1
- returnn-1.20240703.11348/_setup_info_generated.py +2 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/data/pipeline.py +11 -10
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/basic.py +7 -1
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn.egg-info/PKG-INFO +1 -1
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_torch_engine.py +68 -64
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/dump-dataset.py +52 -16
- returnn-1.20240701.135153/_setup_info_generated.py +0 -2
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/.editorconfig +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/.gitignore +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/.gitmodules +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/.kateconfig +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/CHANGELOG.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/CODEOWNERS +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/CONTRIBUTING.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/LICENSE +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/MANIFEST.in +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/README.rst +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/12AX.cluster_map +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/_setup_returnn_env.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-fwd.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-horovod-mpi.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-horovod-mpi.py.sh +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-horovod-mpi.sh +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-hyper-param-tuning.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-iter-dataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-list-devices.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-lua-torch-layer.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-pretrain.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-record-and-push-to-webserver.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-returnn-as-framework.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-rf-pt-benchmark.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-rf.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-rhn-enwik8.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-sprint-interface.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-att-copy.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-attention.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-chunking-blstm.12ax.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-contribrnn-lstm.12ax.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-enc-dec.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-hard-att-copy.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-lstm-benchmark.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-maxgradnorm-lstm.12ax.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-native-lstm-lowmem.12ax.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-native-lstm.12ax.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-native-lstm2.12ax.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-native-lstm2.12ax.tuned.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-neural-transducer.12ax.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-rec-explicit-lstm.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-rec-explicit-rnn.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-rec-self-att.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-search-compiled-graph.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-vanilla-lstm.12ax.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-timit-lstm-ctc.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-torch.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-upd-mult-model.lstm.12ax.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo.sh +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/IAM_lines/a01-000u-00.png +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/IAM_lines/a01-007-04.png +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/IAM_lines/a01-007-06.png +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/README.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/chars.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/config_demo +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/config_fwd +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/config_real +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/create_IAM_dataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/decode.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/features/raw/demo.h5 +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/go.sh +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/lines.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/split/eval.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/split/train.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/split/valid.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/README.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial/create_test_h5.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial/forwardconfig +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial/go.sh +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial/trainconfig +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial_rgb/create_test_h5.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial_rgb/forwardconfig +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial_rgb/go.sh +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial_rgb/trainconfig +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/pyproject.toml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/requirements.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/__main__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/__old_mod_loader__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/__setup__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/config.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/audio.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/basic.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/bundle_file.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/cached.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/cached2.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/distrib_files.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/generating.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/hdf.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/lm.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/map.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/meta.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/multi_proc.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/normalization_data.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/numpy_dump.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/raw_wav.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/sprint.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/stereo.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/util/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/util/feature_extraction.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/util/strings.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/datasets/util/vocabulary.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/engine/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/engine/base.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/engine/batch.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/__main__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/.git +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/.gitignore +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/LICENSE +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/README.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/aligner.gif +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/check.png +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/core.cu +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/core.h +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/core_cpu.cpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/pytorch_binding/LICENSE +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/pytorch_binding/MANIFEST.in +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/pytorch_binding/README.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/pytorch_binding/binding.cpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/pytorch_binding/core.cu +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/pytorch_binding/core.h +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/pytorch_binding/requirements.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/pytorch_binding/setup.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/pytorch_binding/warp_rna/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/pytorch_binding/warp_rna/test.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/ref_rna.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/setup.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/src/warp_rna_op.cc +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/src/warp_rna_op_kernel_tmpl.h +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/warp_rna/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/WarpRna/warp-rna/test.cpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/graph_editor/README.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/graph_editor/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/graph_editor/edit.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/graph_editor/reroute.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/graph_editor/select.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/graph_editor/subgraph.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/graph_editor/transform.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/extern/graph_editor/util.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/forward_iface.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_backend.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_native/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_native/backend.cpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_native/backend.hpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_native/module.cpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_native/module.hpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_native/py_utils.hpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_native/tensor_ops.cpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_native/tensor_ops.hpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_numpy_backend.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_random_journal.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/_utils.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/array_.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/attention.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/audio/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/audio/mel.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/audio/specaugment.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/backend.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/build_from_dict.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/cond.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/const.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/container.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/control_flow_ctx.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/conv.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/decoder/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/decoder/transformer.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/device.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/dims.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/dropout.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/dtype.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/encoder/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/encoder/base.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/encoder/conformer.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/gradient.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/graph.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/hooks.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/init.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/label_smoothing.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/linear.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/loop.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/loss.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/math_.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/matmul.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/module.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/normalization.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/parameter.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/piecewise_linear.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/rand.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/rec.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/reduce.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/run_ctx.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/signal.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/state.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/stepwise_scheduler.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/tensor_array.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/frontend/types.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/import_/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/import_/common.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/import_/git.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/import_/import_.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/learning_rate_control.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/log.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/native_op.cpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/native_op.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/pretrain.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/sprint/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/sprint/cache.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/sprint/control.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/sprint/error_signals.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/sprint/extern_interface.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/sprint/interface.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/README.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/_dim_extra.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/_tensor_extra.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/_tensor_mixin_base.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/_tensor_op_overloads.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/control_flow_ctx.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/dim.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/marked_dim.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/tensor.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/tensor_dict.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tensor/utils.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/compat.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/data_pipeline.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/distributed.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/engine.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/README.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/_backend.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/_utils.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/cond.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/config_entry_points.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/debug_eager_mode.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/dims.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/layer.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/loop.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/make_layer.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/masked_computation.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/parameter_assign.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_layers/prev_tensor_ref.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_low_level/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/frontend_low_level/_backend.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/horovod.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/hyper_param_tuning.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/layers/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/layers/base.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/layers/basic.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/layers/rec.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/layers/segmental_model.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/layers/signal_processing.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/layers/variable.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/native_op.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/network.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/sprint.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/updater.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/util/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/util/basic.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/util/data.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/util/gradient_checkpoint.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/util/ken_lm.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/tf/util/open_fst.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/README.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/data/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/data/extern_data.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/data/queued_data_iter.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/data/returnn_dataset_wrapper.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/data/tensor_utils.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/distributed.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/engine.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/frontend/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/frontend/_backend.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/frontend/_rand.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/frontend/bridge.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/frontend/raw_ops.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/updater.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/util/README.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/util/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/util/diagnose_gpu.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/torch/util/scaled_gradient.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/__init__.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/better_exchook.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/bpe.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/debug.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/debug_helpers.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/file_cache.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/fsa.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/literal_py_to_pickle.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/math.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/multi_proc_non_daemonic_spawn.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/native_code_compiler.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/pprint.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/py-to-pickle.cpp +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/py_compat.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/py_ext_mod_compiler.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/result_with_reason.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/sig_proc.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/task_system.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/train_proc_manager.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn/util/watch_memory.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn.egg-info/SOURCES.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn.egg-info/dependency_links.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/returnn.egg-info/top_level.txt +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/rnn.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/setup.cfg +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/setup.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/DummySprintExec.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm-inspection-profile.xml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/.gitignore +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/.name +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/codeStyleSettings.xml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/codeStyles/Project.xml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/codeStyles/codeStyleConfig.xml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/inspectionProfiles/Project_Default.xml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/misc.xml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/modules.xml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/returnn.iml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/PyCharm.idea/scopes/scope_settings.xml +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/_set_num_threads1.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/_setup_returnn_env.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/_setup_test_env.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/bpe-unicode-demo.codes +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/bpe-unicode-demo.vocab +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/lexicon_opt.fst +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/lexicon_opt.isyms +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/lexicon_opt.jpg +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/lexicon_opt.osyms +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/lint_common.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/pycharm-inspect.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/pylint.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/returnn-as-framework.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/rf_utils.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/spelling.dic +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_Config.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_Dataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_Fsa.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_GeneratingDataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_HDFDataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_LearningRateControl.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_Log.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_MultiProcDataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_Pretrain.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_ResNet.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_SprintDataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_SprintInterface.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TFEngine.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TFNativeOp.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TFNetworkLayer.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TFNetworkRecLayer.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TFNetworkSigProcLayer.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TFUpdater.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TFUtil.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TF_determinism.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TaskSystem.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TaskSystem_SharedMem.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_TranslationDataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_Util.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_demos.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_fork_exec.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_hdf_dump.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_array.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_attention.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_base.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_cond.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_const.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_container.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_conv.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_encoder_conformer.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_gradient.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_label_smoothing.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_loop.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_math.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_normalization.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_piecewise_linear.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_rec.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_reduce.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_rf_signal.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_tensor.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_tools.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_torch_dataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_torch_frontend.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tests/test_torch_internal_frontend.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/_setup_returnn_env.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/analyze-dataset-batches.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/bliss-collect-seq-lens.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/bliss-dump-text.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/bliss-get-segment-names.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/bliss-to-ogg-zip.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/bpe-create-lexicon.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/calculate-word-error-rate.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/cleanup-old-models.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/collect-orth-symbols.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/collect-words.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/compile_native_op.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/compile_tf_graph.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/debug-dump-search-scores.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/debug-plot-search-scores.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/dump-dataset-raw-strings.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/dump-forward-stats.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/dump-forward.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/dump-network-json.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/dump-pickle.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/extract_state_tying_from_dataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/get-attention-weights.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/get-best-model-epoch.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/hdf_dump.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/hdf_dump_translation_dataset.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/import-blocks-mt-model.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/import-t2t-mt-model.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/.gitignore +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/Makefile +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/README.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/example/README.md +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/example/libs_list +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/example/network.040/i600_m600_m600.sgd_b16_lr0_cl2.newbobabs.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/example/network.040/i600_m600_m600.sgd_b16_lr0_cl2.newbobabs.keep_over_epoch.lstm2.config +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/example/rescore_lattice.sh +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/example/state_vars_list +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/example/tensor_names_list +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/file.h +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/htklatticerescorer.cc +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/htklatticerescorer.h +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/main.cc +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/rescorer.h +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/vocabulary.cc +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/lattice_rescorer/vocabulary.h +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/tf_avg_checkpoints.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/tf_inspect_checkpoint.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/tf_inspect_summary_log.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/torch_avg_checkpoints.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/torch_export_to_onnx.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/torch_inspect_checkpoint.py +0 -0
- {returnn-1.20240701.135153 → returnn-1.20240703.11348}/tools/torch_inspect_checkpoint_and_opt.py +0 -0
|
@@ -27,7 +27,6 @@ import numpy
|
|
|
27
27
|
import torch
|
|
28
28
|
import torch.utils.data
|
|
29
29
|
|
|
30
|
-
from returnn.log import log
|
|
31
30
|
from returnn.util.basic import NumbersDict
|
|
32
31
|
|
|
33
32
|
|
|
@@ -306,9 +305,19 @@ def create_data_loader_from_batches(
|
|
|
306
305
|
"""
|
|
307
306
|
if loader_opts is None:
|
|
308
307
|
loader_opts: Dict[str, Any] = {}
|
|
308
|
+
else:
|
|
309
|
+
loader_opts = loader_opts.copy()
|
|
310
|
+
|
|
311
|
+
# Make sure to use workers unless specified otherwise to ensure reasonable GPU
|
|
312
|
+
# utilization and to work around some issues wrt. overflowing ulimits when
|
|
313
|
+
# workers are non-persistent.
|
|
314
|
+
#
|
|
315
|
+
# See for context:
|
|
316
|
+
# - https://github.com/rwth-i6/returnn/issues/1560
|
|
317
|
+
# - https://github.com/pytorch/pytorch/issues/129868
|
|
318
|
+
loader_opts.setdefault("num_workers", 1)
|
|
309
319
|
|
|
310
320
|
if loader_opts.get("num_workers"):
|
|
311
|
-
loader_opts = loader_opts.copy()
|
|
312
321
|
loader_opts.setdefault("persistent_workers", True)
|
|
313
322
|
loader_opts["worker_init_fn"] = _DataLoaderWorkerInitFunc(
|
|
314
323
|
other_worker_init_fn=loader_opts.get("worker_init_fn")
|
|
@@ -329,14 +338,6 @@ def create_data_loader_from_batches(
|
|
|
329
338
|
# See _DataLoaderWorkerPreInitFunc below, https://github.com/rwth-i6/returnn/issues/1495.
|
|
330
339
|
process_pre_init_func=SubProcCopyGlobalConfigPreInitFunc()
|
|
331
340
|
)
|
|
332
|
-
else:
|
|
333
|
-
log.print_warning(
|
|
334
|
-
"Not using dedicated worker processes for torch data loading.\n"
|
|
335
|
-
'It is strongly recommended to set torch_dataloader_opts = {"num_workers": 1} '
|
|
336
|
-
"to improve GPU utilization and to work around some issues.\n"
|
|
337
|
-
"See e.g. https://github.com/rwth-i6/returnn/issues/1560 for an issue that is fixed by "
|
|
338
|
-
"using dedicated worker processes."
|
|
339
|
-
)
|
|
340
341
|
|
|
341
342
|
return torch.utils.data.DataLoader(
|
|
342
343
|
batches_dataset,
|
|
@@ -2018,7 +2018,7 @@ class NumbersDict:
|
|
|
2018
2018
|
:param T default:
|
|
2019
2019
|
:rtype: object|T
|
|
2020
2020
|
"""
|
|
2021
|
-
# Keep consistent with self.
|
|
2021
|
+
# Keep consistent with self.__getitem__. If self.value is set, this will always be the default value.
|
|
2022
2022
|
return self.dict.get(key, self.value if self.value is not None else default)
|
|
2023
2023
|
|
|
2024
2024
|
def pop(self, key, *args):
|
|
@@ -2055,6 +2055,12 @@ class NumbersDict:
|
|
|
2055
2055
|
"""
|
|
2056
2056
|
return self.dict.items()
|
|
2057
2057
|
|
|
2058
|
+
def has_value_for(self, key: str) -> bool:
|
|
2059
|
+
"""
|
|
2060
|
+
:return: If self.value is set, always True, otherwise if key is in self.dict
|
|
2061
|
+
"""
|
|
2062
|
+
return self.value is not None or key in self.dict
|
|
2063
|
+
|
|
2058
2064
|
def has_values(self):
|
|
2059
2065
|
"""
|
|
2060
2066
|
:rtype: bool
|
|
@@ -20,44 +20,46 @@ from returnn.forward_iface import ForwardCallbackIface
|
|
|
20
20
|
from returnn.datasets import init_dataset
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
23
|
+
# must be in the global scope due to pickling
|
|
24
|
+
class TrainTestModel(torch.nn.Module):
|
|
25
|
+
def __init__(self, **_kwargs):
|
|
26
|
+
super().__init__()
|
|
27
|
+
self.lin = torch.nn.Linear(9, 2)
|
|
28
|
+
|
|
29
|
+
def __call__(self, x: torch.Tensor) -> torch.Tensor:
|
|
30
|
+
"""
|
|
31
|
+
:param x: [B,T,D]
|
|
32
|
+
:return: [B,T,D']
|
|
33
|
+
"""
|
|
34
|
+
x = self.lin(x)
|
|
35
|
+
return torch.nn.functional.log_softmax(x, dim=-1)
|
|
36
|
+
|
|
37
|
+
@classmethod
|
|
38
|
+
def train_step(cls, *, model: TrainTestModel, extern_data: TensorDict, **_kwargs):
|
|
39
|
+
"""train step"""
|
|
40
|
+
data: Tensor = extern_data["data"]
|
|
41
|
+
logits = model(data.raw_tensor)
|
|
42
|
+
logits_packed = torch.nn.utils.rnn.pack_padded_sequence(
|
|
43
|
+
logits, data.dims[1].dyn_size_ext.raw_tensor, batch_first=True, enforce_sorted=False
|
|
44
|
+
)
|
|
45
|
+
targets = extern_data["classes"]
|
|
46
|
+
targets_packed = torch.nn.utils.rnn.pack_padded_sequence(
|
|
47
|
+
targets.raw_tensor, data.dims[1].dyn_size_ext.raw_tensor, batch_first=True, enforce_sorted=False
|
|
48
|
+
)
|
|
49
|
+
loss = torch.nn.CrossEntropyLoss(reduction="none")(logits_packed.data, targets_packed.data.long())
|
|
50
|
+
rf.get_run_ctx().mark_as_loss(name="ce", loss=loss)
|
|
51
|
+
frame_error = torch.argmax(logits_packed.data, dim=-1).not_equal(targets_packed.data)
|
|
52
|
+
rf.get_run_ctx().mark_as_loss(name="fer", loss=frame_error, as_error=True)
|
|
53
|
+
|
|
53
54
|
|
|
55
|
+
def test_torch_engine_train():
|
|
54
56
|
config = Config(
|
|
55
57
|
dict(
|
|
56
58
|
task="train",
|
|
57
59
|
device="cpu",
|
|
58
60
|
extern_data={"data": {"dim": 9}, "classes": {"dim": 2, "sparse": True}},
|
|
59
|
-
get_model=
|
|
60
|
-
train_step=
|
|
61
|
+
get_model=TrainTestModel,
|
|
62
|
+
train_step=TrainTestModel.train_step,
|
|
61
63
|
batch_size=500,
|
|
62
64
|
optimizer={"class": "adam"},
|
|
63
65
|
)
|
|
@@ -458,44 +460,46 @@ class _TestTorchSubModelRaisingException(torch.nn.Module):
|
|
|
458
460
|
return x
|
|
459
461
|
|
|
460
462
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
463
|
+
# must be in the global scope due to pickling
|
|
464
|
+
class TrainExceptionModel(torch.nn.Module):
|
|
465
|
+
def __init__(self, **_kwargs):
|
|
466
|
+
super().__init__()
|
|
467
|
+
self.sub = _TestTorchSubModelRaisingException(9, 2)
|
|
468
|
+
|
|
469
|
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
|
470
|
+
"""
|
|
471
|
+
:param x: [B,T,D]
|
|
472
|
+
:return: [B,T,D']
|
|
473
|
+
"""
|
|
474
|
+
x = self.sub(x)
|
|
475
|
+
return torch.nn.functional.log_softmax(x, dim=-1)
|
|
476
|
+
|
|
477
|
+
@classmethod
|
|
478
|
+
def train_step(cls, *, model: TrainExceptionModel, extern_data: TensorDict, **_kwargs):
|
|
479
|
+
"""train step"""
|
|
480
|
+
data: Tensor = extern_data["data"]
|
|
481
|
+
logits = model(data.raw_tensor)
|
|
482
|
+
logits_packed = torch.nn.utils.rnn.pack_padded_sequence(
|
|
483
|
+
logits, data.dims[1].dyn_size_ext.raw_tensor, batch_first=True, enforce_sorted=False
|
|
484
|
+
)
|
|
485
|
+
targets = extern_data["classes"]
|
|
486
|
+
targets_packed = torch.nn.utils.rnn.pack_padded_sequence(
|
|
487
|
+
targets.raw_tensor, data.dims[1].dyn_size_ext.raw_tensor, batch_first=True, enforce_sorted=False
|
|
488
|
+
)
|
|
489
|
+
loss = torch.nn.CrossEntropyLoss(reduction="none")(logits_packed.data, targets_packed.data.long())
|
|
490
|
+
rf.get_run_ctx().mark_as_loss(name="ce", loss=loss)
|
|
491
|
+
frame_error = torch.argmax(logits_packed.data, dim=-1).not_equal(targets_packed.data)
|
|
492
|
+
rf.get_run_ctx().mark_as_loss(name="fer", loss=frame_error, as_error=True)
|
|
493
|
+
|
|
491
494
|
|
|
495
|
+
def test_torch_engine_train_exception():
|
|
492
496
|
config = Config(
|
|
493
497
|
dict(
|
|
494
498
|
task="train",
|
|
495
499
|
device="cpu",
|
|
496
500
|
extern_data={"data": {"dim": 9}, "classes": {"dim": 2, "sparse": True}},
|
|
497
|
-
get_model=
|
|
498
|
-
train_step=
|
|
501
|
+
get_model=TrainExceptionModel,
|
|
502
|
+
train_step=TrainExceptionModel.train_step,
|
|
499
503
|
batch_size=500,
|
|
500
504
|
optimizer={"class": "adam"},
|
|
501
505
|
)
|
|
@@ -18,7 +18,7 @@ from returnn.log import log
|
|
|
18
18
|
import argparse
|
|
19
19
|
import numpy
|
|
20
20
|
from returnn.datasets import init_dataset, Dataset
|
|
21
|
-
from returnn.util.basic import Stats, hms, hms_fraction, pretty_print
|
|
21
|
+
from returnn.util.basic import Stats, hms, hms_fraction, pretty_print, NumbersDict
|
|
22
22
|
from returnn.util import basic as util
|
|
23
23
|
|
|
24
24
|
|
|
@@ -49,9 +49,13 @@ def dump_dataset(options):
|
|
|
49
49
|
print("Dataset keys:", dataset.get_data_keys(), file=log.v3)
|
|
50
50
|
print("Dataset target keys:", dataset.get_target_list(), file=log.v3)
|
|
51
51
|
assert options.key in dataset.get_data_keys()
|
|
52
|
+
max_seq_length = NumbersDict(options.max_seq_length)
|
|
53
|
+
min_seq_length = NumbersDict(options.min_seq_length)
|
|
52
54
|
|
|
53
55
|
if options.get_num_seqs:
|
|
54
56
|
print("Get num seqs.")
|
|
57
|
+
if max_seq_length or min_seq_length:
|
|
58
|
+
raise Exception("Cannot use --get_num_seqs together with --max_seq_length or --min_seq_length.")
|
|
55
59
|
print("estimated_num_seqs: %r" % dataset.estimated_num_seqs)
|
|
56
60
|
try:
|
|
57
61
|
print("num_seqs: %r" % dataset.num_seqs)
|
|
@@ -114,6 +118,7 @@ def dump_dataset(options):
|
|
|
114
118
|
start_time = time.time()
|
|
115
119
|
stats = Stats() if (options.stats or options.dump_stats) else None
|
|
116
120
|
seq_len_stats = {key: Stats() for key in dataset.get_data_keys()}
|
|
121
|
+
seq_len_stats_filtered = {key: Stats() for key in dataset.get_data_keys()}
|
|
117
122
|
seq_idx = options.startseq
|
|
118
123
|
if options.endseq < 0:
|
|
119
124
|
options.endseq = float("inf")
|
|
@@ -128,6 +133,19 @@ def dump_dataset(options):
|
|
|
128
133
|
num_seqs_s = "~%i" % dataset.estimated_num_seqs
|
|
129
134
|
except TypeError: # a number is required, not NoneType
|
|
130
135
|
num_seqs_s = "?"
|
|
136
|
+
seq_len = dataset.get_seq_length(seq_idx)
|
|
137
|
+
for key in dataset.get_data_keys():
|
|
138
|
+
seq_len_stats[key].collect([seq_len[key]])
|
|
139
|
+
filter_out_seq_reasons = []
|
|
140
|
+
if max_seq_length or min_seq_length:
|
|
141
|
+
for key in dataset.get_data_keys():
|
|
142
|
+
if max_seq_length.has_value_for(key) and seq_len[key] > max_seq_length[key]:
|
|
143
|
+
filter_out_seq_reasons.append(f"len({key}) = {seq_len[key]} > {max_seq_length[key]}")
|
|
144
|
+
if min_seq_length.has_value_for(key) and seq_len[key] < min_seq_length[key]:
|
|
145
|
+
filter_out_seq_reasons.append(f"len({key}) = {seq_len[key]} < {min_seq_length[key]}")
|
|
146
|
+
if not filter_out_seq_reasons:
|
|
147
|
+
for key in dataset.get_data_keys():
|
|
148
|
+
seq_len_stats_filtered[key].collect([seq_len[key]])
|
|
131
149
|
progress_prefix = "%i/%s" % (seq_idx, num_seqs_s)
|
|
132
150
|
progress = "%s (%.02f%%)" % (progress_prefix, complete_frac * 100)
|
|
133
151
|
data = None
|
|
@@ -135,7 +153,18 @@ def dump_dataset(options):
|
|
|
135
153
|
total_time_estimated = start_elapsed / complete_frac
|
|
136
154
|
remaining_estimated = total_time_estimated - start_elapsed
|
|
137
155
|
progress += " (%s)" % hms(remaining_estimated)
|
|
138
|
-
if
|
|
156
|
+
if filter_out_seq_reasons:
|
|
157
|
+
if options.type != "null":
|
|
158
|
+
print(
|
|
159
|
+
"seq %s tag %r filtered out: %s"
|
|
160
|
+
% (
|
|
161
|
+
progress,
|
|
162
|
+
dataset.get_tag(seq_idx),
|
|
163
|
+
", ".join(filter_out_seq_reasons),
|
|
164
|
+
),
|
|
165
|
+
file=log.v2,
|
|
166
|
+
)
|
|
167
|
+
elif options.type == "print_tag":
|
|
139
168
|
print("seq %s tag:" % (progress if log.verbose[2] else progress_prefix), dataset.get_tag(seq_idx))
|
|
140
169
|
elif options.type == "dump_tag":
|
|
141
170
|
print("seq %s tag:" % (progress if log.verbose[2] else progress_prefix), dataset.get_tag(seq_idx))
|
|
@@ -180,10 +209,7 @@ def dump_dataset(options):
|
|
|
180
209
|
from returnn.util.debug import debug_shell
|
|
181
210
|
|
|
182
211
|
debug_shell(locals())
|
|
183
|
-
|
|
184
|
-
for key in dataset.get_data_keys():
|
|
185
|
-
seq_len_stats[key].collect([seq_len[key]])
|
|
186
|
-
if stats:
|
|
212
|
+
if stats and not filter_out_seq_reasons:
|
|
187
213
|
stats.collect(data)
|
|
188
214
|
if options.type == "null":
|
|
189
215
|
util.progress_bar_with_time(complete_frac, prefix=progress_prefix)
|
|
@@ -197,6 +223,10 @@ def dump_dataset(options):
|
|
|
197
223
|
)
|
|
198
224
|
for key in dataset.get_data_keys():
|
|
199
225
|
seq_len_stats[key].dump(stream_prefix="Seq-length %r " % key, stream=log.v2)
|
|
226
|
+
if max_seq_length or min_seq_length:
|
|
227
|
+
seq_len_stats_filtered[key].dump(stream_prefix="Seq-length-filtered %r " % key, stream=log.v2)
|
|
228
|
+
if max_seq_length or min_seq_length:
|
|
229
|
+
print("Used max_seq_length %r and min_seq_length %r." % (max_seq_length, min_seq_length), file=log.v3)
|
|
200
230
|
if stats:
|
|
201
231
|
stats.dump(output_file_prefix=options.dump_stats, stream_prefix="Data %r " % options.key, stream=log.v1)
|
|
202
232
|
if options.type == "dump_seq_len":
|
|
@@ -206,20 +236,16 @@ def dump_dataset(options):
|
|
|
206
236
|
dump_file.close()
|
|
207
237
|
|
|
208
238
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
def init(config_str, config_dataset, verbosity):
|
|
239
|
+
def init(options):
|
|
213
240
|
"""
|
|
214
|
-
:param
|
|
215
|
-
:param str|None config_dataset:
|
|
216
|
-
:param int verbosity:
|
|
241
|
+
:param argparse.Namespace options:
|
|
217
242
|
"""
|
|
218
243
|
global dataset
|
|
219
244
|
rnn.init_better_exchook()
|
|
220
245
|
rnn.init_thread_join_hack()
|
|
221
246
|
dataset_dict = None
|
|
222
247
|
config_filename = None
|
|
248
|
+
config_str = options.returnn_config
|
|
223
249
|
if config_str.strip().startswith("{"):
|
|
224
250
|
print("Using dataset %s." % config_str)
|
|
225
251
|
dataset_dict = eval(config_str.strip())
|
|
@@ -232,12 +258,12 @@ def init(config_str, config_dataset, verbosity):
|
|
|
232
258
|
print("Using config file %r." % config_filename)
|
|
233
259
|
assert os.path.exists(config_filename)
|
|
234
260
|
rnn.init_config(config_filename=config_filename, default_config={"cache_size": "0"})
|
|
235
|
-
global config
|
|
236
261
|
config = rnn.config
|
|
237
262
|
config.set("log", None)
|
|
238
|
-
config.set("log_verbosity", verbosity)
|
|
263
|
+
config.set("log_verbosity", options.verbosity)
|
|
239
264
|
config.set("torch_distributed", None)
|
|
240
265
|
config.set("use_horovod", None)
|
|
266
|
+
config_dataset = options.dataset
|
|
241
267
|
if dataset_dict:
|
|
242
268
|
assert not config_dataset
|
|
243
269
|
dataset = init_dataset(dataset_dict)
|
|
@@ -256,6 +282,14 @@ def init(config_str, config_dataset, verbosity):
|
|
|
256
282
|
print(" input:", dataset.num_inputs, "x", dataset.window, file=log.v2)
|
|
257
283
|
print(" output:", dataset.num_outputs, file=log.v2)
|
|
258
284
|
print(" ", dataset.len_info() or "no info", file=log.v2)
|
|
285
|
+
if options.max_seq_length == "config":
|
|
286
|
+
options.max_seq_length = config.typed_value("max_seq_length", sys.maxsize)
|
|
287
|
+
elif options.max_seq_length:
|
|
288
|
+
options.max_seq_length = eval(options.max_seq_length) # noqa
|
|
289
|
+
if options.min_seq_length == "config":
|
|
290
|
+
options.min_seq_length = config.typed_value("min_seq_length", 0)
|
|
291
|
+
elif options.min_seq_length:
|
|
292
|
+
options.min_seq_length = eval(options.min_seq_length) # noqa
|
|
259
293
|
|
|
260
294
|
|
|
261
295
|
def main():
|
|
@@ -279,10 +313,12 @@ def main():
|
|
|
279
313
|
argparser.add_argument("--key", default="data", help="data-key, e.g. 'data' or 'classes'. (default: 'data')")
|
|
280
314
|
argparser.add_argument("--stats", action="store_true", help="calculate mean/stddev stats")
|
|
281
315
|
argparser.add_argument("--dump_stats", help="file-prefix to dump stats to")
|
|
316
|
+
argparser.add_argument("--max_seq_length", help="'config' or dict or int")
|
|
317
|
+
argparser.add_argument("--min_seq_length", help="'config' or dict or int")
|
|
282
318
|
args = argparser.parse_args()
|
|
283
319
|
if args.endseq is None:
|
|
284
320
|
args.endseq = 10 if not args.seqtags else -1
|
|
285
|
-
init(
|
|
321
|
+
init(args)
|
|
286
322
|
try:
|
|
287
323
|
dump_dataset(args)
|
|
288
324
|
except KeyboardInterrupt:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-record-and-push-to-webserver.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-chunking-blstm.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-contribrnn-lstm.12ax.config
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-maxgradnorm-lstm.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-native-lstm-lowmem.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-native-lstm.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-native-lstm2.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-native-lstm2.12ax.tuned.config
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-neural-transducer.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-rec-explicit-lstm.config
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-rec-explicit-rnn.config
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-search-compiled-graph.py
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-tf-vanilla-lstm.12ax.config
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/demo-upd-mult-model.lstm.12ax.config
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/IAM_lines/a01-000u-00.png
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/IAM_lines/a01-007-04.png
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/IAM_lines/a01-007-06.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/create_IAM_dataset.py
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/IAM/features/raw/demo.h5
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial/create_test_h5.py
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial/forwardconfig
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial_rgb/create_test_h5.py
RENAMED
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial_rgb/forwardconfig
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20240701.135153 → returnn-1.20240703.11348}/demos/mdlstm/artificial_rgb/trainconfig
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|