returnn 1.20250206.151011__tar.gz → 1.20250211.110723__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.20250206.151011/returnn.egg-info → returnn-1.20250211.110723}/PKG-INFO +1 -1
- returnn-1.20250211.110723/_setup_info_generated.py +2 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/lm.py +101 -86
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/engine.py +1 -1
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/frontend/_backend.py +1 -1
- {returnn-1.20250206.151011 → returnn-1.20250211.110723/returnn.egg-info}/PKG-INFO +1 -1
- returnn-1.20250206.151011/_setup_info_generated.py +0 -2
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/.editorconfig +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/.gitignore +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/.gitmodules +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/.kateconfig +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/CHANGELOG.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/CODEOWNERS +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/CONTRIBUTING.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/LICENSE +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/MANIFEST.in +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/README.rst +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/12AX.cluster_map +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/_setup_returnn_env.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-fwd.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-horovod-mpi.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-horovod-mpi.py.sh +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-horovod-mpi.sh +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-hyper-param-tuning.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-iter-dataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-list-devices.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-lua-torch-layer.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-pretrain.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-record-and-push-to-webserver.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-returnn-as-framework.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-rf-pt-benchmark.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-rf.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-rhn-enwik8.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-sprint-interface.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-att-copy.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-attention.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-chunking-blstm.12ax.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-contribrnn-lstm.12ax.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-enc-dec.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-hard-att-copy.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-lstm-benchmark.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-maxgradnorm-lstm.12ax.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-native-lstm-lowmem.12ax.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-native-lstm.12ax.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-native-lstm2.12ax.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-native-lstm2.12ax.tuned.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-neural-transducer.12ax.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-rec-explicit-lstm.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-rec-explicit-rnn.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-rec-self-att.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-search-compiled-graph.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-vanilla-lstm.12ax.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-timit-lstm-ctc.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-torch.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-upd-mult-model.lstm.12ax.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo.sh +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/IAM_lines/a01-000u-00.png +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/IAM_lines/a01-007-04.png +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/IAM_lines/a01-007-06.png +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/README.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/chars.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/config_demo +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/config_fwd +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/config_real +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/create_IAM_dataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/decode.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/features/raw/demo.h5 +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/go.sh +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/lines.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/split/eval.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/split/train.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/split/valid.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial/create_test_h5.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial/forwardconfig +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial/go.sh +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial/trainconfig +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial_rgb/create_test_h5.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial_rgb/forwardconfig +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial_rgb/go.sh +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial_rgb/trainconfig +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/pyproject.toml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/requirements.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/__main__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/__old_mod_loader__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/__setup__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/config.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/audio.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/basic.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/bundle_file.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/cached.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/cached2.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/distrib_files.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/generating.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/hdf.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/map.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/meta.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/multi_proc.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/normalization_data.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/numpy_dump.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/postprocessing.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/raw_wav.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/sprint.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/stereo.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/text_dict.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/util/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/util/feature_extraction.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/util/strings.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/datasets/util/vocabulary.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/engine/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/engine/base.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/engine/batch.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/__main__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/.git +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/.gitignore +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/LICENSE +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/aligner.gif +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/check.png +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/core.cu +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/core.h +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/core_cpu.cpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/pytorch_binding/LICENSE +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/pytorch_binding/MANIFEST.in +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/pytorch_binding/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/pytorch_binding/binding.cpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/pytorch_binding/core.cu +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/pytorch_binding/core.h +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/pytorch_binding/requirements.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/pytorch_binding/setup.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/pytorch_binding/warp_rna/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/pytorch_binding/warp_rna/test.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/ref_rna.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/setup.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/src/warp_rna_op.cc +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/src/warp_rna_op_kernel_tmpl.h +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/warp_rna/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/WarpRna/warp-rna/test.cpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/graph_editor/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/graph_editor/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/graph_editor/edit.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/graph_editor/reroute.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/graph_editor/select.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/graph_editor/subgraph.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/graph_editor/transform.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/extern/graph_editor/util.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/forward_iface.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_backend.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_cache.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_native/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_native/backend.cpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_native/backend.hpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_native/module.cpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_native/module.hpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_native/py_utils.hpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_native/tensor_ops.cpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_native/tensor_ops.hpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_numpy_backend.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_random_journal.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/_utils.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/array_.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/attention.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/audio/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/audio/mel.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/audio/specaugment.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/backend.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/build_from_dict.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/cond.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/const.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/container.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/control_flow_ctx.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/conv.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/conversions/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/conversions/espnet_e_branchformer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/conversions/hf_llama.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/conversions/torch_nn.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/decoder/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/decoder/transformer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/device.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/dims.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/dropout.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/dtype.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/encoder/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/encoder/base.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/encoder/conformer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/encoder/conformer_v2.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/encoder/e_branchformer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/encoder/transformer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/gradient.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/graph.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/hooks.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/init.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/label_smoothing.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/linear.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/loop.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/loss.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/math_.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/matmul.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/module.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/nested.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/normalization.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/parameter.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/parametrizations.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/parametrize.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/piecewise_linear.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/rand.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/rec.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/reduce.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/run_ctx.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/signal.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/state.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/stepwise_scheduler.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/tensor_array.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/frontend/types.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/import_/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/import_/common.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/import_/git.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/import_/import_.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/learning_rate_control.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/log.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/native_op.cpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/native_op.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/pretrain.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/sprint/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/sprint/cache.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/sprint/control.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/sprint/error_signals.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/sprint/extern_interface.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/sprint/interface.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/_dim_extra.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/_tensor_extra.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/_tensor_mixin_base.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/_tensor_op_overloads.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/control_flow_ctx.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/dim.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/marked_dim.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/tensor.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/tensor_dict.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tensor/utils.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/compat.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/data_pipeline.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/distributed.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/engine.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/_backend.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/_utils.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/cond.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/config_entry_points.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/debug_eager_mode.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/dims.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/layer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/loop.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/make_layer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/masked_computation.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/parameter_assign.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_layers/prev_tensor_ref.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_low_level/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/frontend_low_level/_backend.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/horovod.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/hyper_param_tuning.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/layers/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/layers/base.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/layers/basic.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/layers/rec.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/layers/segmental_model.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/layers/signal_processing.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/layers/variable.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/native_op.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/network.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/sprint.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/updater.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/util/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/util/basic.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/util/data.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/util/gradient_checkpoint.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/util/ken_lm.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/tf/util/open_fst.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/data/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/data/extern_data.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/data/pipeline.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/data/queued_data_iter.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/data/returnn_dataset_wrapper.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/data/tensor_utils.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/distributed.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/frontend/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/frontend/_rand.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/frontend/bridge.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/frontend/raw_ops.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/optim/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/optim/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/optim/lion.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/updater.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/util/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/util/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/util/array_.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/util/debug_inf_nan.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/util/diagnose_gpu.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/util/exception_helper.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/util/gradient_checkpoint.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/util/module.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/torch/util/scaled_gradient.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/__init__.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/basic.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/better_exchook.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/bpe.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/debug.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/debug_helpers.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/file_cache.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/fsa.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/literal_py_to_pickle.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/lru_cache.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/math.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/multi_proc_non_daemonic_spawn.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/native_code_compiler.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/pprint.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/py-to-pickle.cpp +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/py_ext_mod_compiler.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/result_with_reason.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/sig_proc.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/task_system.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/train_proc_manager.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn/util/watch_memory.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn.egg-info/SOURCES.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn.egg-info/dependency_links.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn.egg-info/requires.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/returnn.egg-info/top_level.txt +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/rnn.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/setup.cfg +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/setup.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/DummySprintExec.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm-inspection-profile.xml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/.gitignore +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/.name +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/codeStyleSettings.xml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/codeStyles/Project.xml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/codeStyles/codeStyleConfig.xml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/inspectionProfiles/Project_Default.xml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/misc.xml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/modules.xml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/returnn.iml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/PyCharm.idea/scopes/scope_settings.xml +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/_set_num_threads1.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/_setup_returnn_env.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/_setup_test_env.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/bpe-unicode-demo.codes +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/bpe-unicode-demo.vocab +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/lexicon_opt.fst +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/lexicon_opt.isyms +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/lexicon_opt.jpg +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/lexicon_opt.osyms +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/lint_common.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/pycharm-inspect.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/pylint.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/returnn-as-framework.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/rf_utils.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/spelling.dic +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_Config.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_Dataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_Fsa.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_GeneratingDataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_HDFDataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_LearningRateControl.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_Log.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_MultiProcDataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_Pretrain.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_ResNet.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_SprintDataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_SprintInterface.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TFEngine.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TFNativeOp.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TFNetworkLayer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TFNetworkRecLayer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TFNetworkSigProcLayer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TFUpdater.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TFUtil.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TF_determinism.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TaskSystem.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TaskSystem_SharedMem.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_TranslationDataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_Util.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_demos.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_fork_exec.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_hdf_dump.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_array.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_attention.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_base.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_cond.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_const.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_container.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_conv.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_decoder_transformer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_encoder_conformer.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_gradient.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_label_smoothing.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_loop.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_math.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_normalization.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_piecewise_linear.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_rec.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_reduce.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_rf_signal.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_tensor.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_threading.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_tools.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_torch_dataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_torch_engine.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_torch_frontend.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_torch_internal_frontend.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/test_torch_util.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tests/torch_utils.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/_setup_returnn_env.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/analyze-dataset-batches.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/bliss-collect-seq-lens.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/bliss-dump-text.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/bliss-get-segment-names.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/bliss-to-ogg-zip.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/bpe-create-lexicon.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/calculate-word-error-rate.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/cleanup-old-models.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/collect-orth-symbols.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/collect-words.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/compile_native_op.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/compile_tf_graph.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/debug-dump-search-scores.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/debug-plot-search-scores.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/dump-dataset-raw-strings.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/dump-dataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/dump-forward-stats.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/dump-forward.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/dump-network-json.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/dump-pickle.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/extract_state_tying_from_dataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/get-attention-weights.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/get-best-model-epoch.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/hdf_dump.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/hdf_dump_translation_dataset.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/import-blocks-mt-model.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/import-t2t-mt-model.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/.gitignore +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/Makefile +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/example/README.md +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/example/libs_list +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/example/network.040/i600_m600_m600.sgd_b16_lr0_cl2.newbobabs.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/example/network.040/i600_m600_m600.sgd_b16_lr0_cl2.newbobabs.keep_over_epoch.lstm2.config +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/example/rescore_lattice.sh +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/example/state_vars_list +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/example/tensor_names_list +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/file.h +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/htklatticerescorer.cc +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/htklatticerescorer.h +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/main.cc +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/rescorer.h +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/vocabulary.cc +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/lattice_rescorer/vocabulary.h +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/tf_avg_checkpoints.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/tf_inspect_checkpoint.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/tf_inspect_summary_log.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/torch_avg_checkpoints.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/torch_export_to_onnx.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/torch_inspect_checkpoint.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/torch_inspect_checkpoint_and_opt.py +0 -0
- {returnn-1.20250206.151011 → returnn-1.20250211.110723}/tools/torch_scale_tuning.py +0 -0
|
@@ -7,9 +7,10 @@ and some related helpers.
|
|
|
7
7
|
|
|
8
8
|
from __future__ import annotations
|
|
9
9
|
|
|
10
|
-
from typing import Optional, Union, Callable, Iterator, List, Tuple, BinaryIO, cast
|
|
10
|
+
from typing import Optional, Union, Any, Callable, Iterator, List, Tuple, Set, BinaryIO, Dict, cast, Generator
|
|
11
11
|
import typing
|
|
12
12
|
import os
|
|
13
|
+
from io import IOBase
|
|
13
14
|
import sys
|
|
14
15
|
import time
|
|
15
16
|
import re
|
|
@@ -1043,17 +1044,17 @@ class Lexicon:
|
|
|
1043
1044
|
Lexicon. Map of words to phoneme sequences (can have multiple pronunciations).
|
|
1044
1045
|
"""
|
|
1045
1046
|
|
|
1046
|
-
def __init__(self, filename):
|
|
1047
|
+
def __init__(self, filename: str):
|
|
1047
1048
|
"""
|
|
1048
|
-
:param
|
|
1049
|
+
:param filename:
|
|
1049
1050
|
"""
|
|
1050
1051
|
print("Loading lexicon", filename, file=log.v4)
|
|
1051
1052
|
lex_file = open(filename, "rb")
|
|
1052
1053
|
if filename.endswith(".gz"):
|
|
1053
1054
|
lex_file = gzip.GzipFile(fileobj=lex_file)
|
|
1054
|
-
self.phoneme_list
|
|
1055
|
-
self.phonemes
|
|
1056
|
-
self.lemmas
|
|
1055
|
+
self.phoneme_list: List[str] = []
|
|
1056
|
+
self.phonemes: Dict[str, Dict[str, Any]] = {} # phone -> {index, symbol, variation}
|
|
1057
|
+
self.lemmas: Dict[str, Dict[str, Any]] = {} # orth -> {orth, phons}
|
|
1057
1058
|
|
|
1058
1059
|
context = iter(ElementTree.iterparse(lex_file, events=("start", "end")))
|
|
1059
1060
|
_, root = next(context) # get root element
|
|
@@ -1097,12 +1098,12 @@ class StateTying:
|
|
|
1097
1098
|
Clustering of (allophone) states into classes.
|
|
1098
1099
|
"""
|
|
1099
1100
|
|
|
1100
|
-
def __init__(self, state_tying_file):
|
|
1101
|
+
def __init__(self, state_tying_file: str):
|
|
1101
1102
|
"""
|
|
1102
|
-
:param
|
|
1103
|
+
:param state_tying_file:
|
|
1103
1104
|
"""
|
|
1104
|
-
self.allo_map = {} # allophone-state-str -> class-idx
|
|
1105
|
-
self.class_map = {} # class-idx -> set(allophone-state-str)
|
|
1105
|
+
self.allo_map: Dict[str, int] = {} # allophone-state-str -> class-idx
|
|
1106
|
+
self.class_map: Dict[int, Set[str]] = {} # class-idx -> set(allophone-state-str)
|
|
1106
1107
|
lines = open(state_tying_file).read().splitlines()
|
|
1107
1108
|
for line in lines:
|
|
1108
1109
|
allo_str, class_idx_str = line.split()
|
|
@@ -1124,29 +1125,45 @@ class PhoneSeqGenerator:
|
|
|
1124
1125
|
|
|
1125
1126
|
def __init__(
|
|
1126
1127
|
self,
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1128
|
+
*,
|
|
1129
|
+
lexicon_file: str,
|
|
1130
|
+
phoneme_vocab_file: Optional[str] = None,
|
|
1131
|
+
allo_num_states: int = 3,
|
|
1132
|
+
allo_context_len: int = 1,
|
|
1133
|
+
state_tying_file: Optional[str] = None,
|
|
1134
|
+
add_silence_beginning: float = 0.1,
|
|
1135
|
+
add_silence_between_words: float = 0.1,
|
|
1136
|
+
add_silence_end: float = 0.1,
|
|
1137
|
+
repetition: float = 0.9,
|
|
1138
|
+
silence_repetition: float = 0.95,
|
|
1139
|
+
silence_lemma_orth: str = "[SILENCE]",
|
|
1140
|
+
extra_begin_lemma: Optional[Dict[str, Any]] = None,
|
|
1141
|
+
add_extra_begin_lemma: float = 1.0,
|
|
1142
|
+
extra_end_lemma: Optional[Dict[str, Any]] = None,
|
|
1143
|
+
add_extra_end_lemma: float = 1.0,
|
|
1136
1144
|
):
|
|
1137
1145
|
"""
|
|
1138
|
-
:param
|
|
1139
|
-
:param
|
|
1140
|
-
|
|
1141
|
-
:param
|
|
1142
|
-
:param
|
|
1143
|
-
:param
|
|
1144
|
-
:param
|
|
1145
|
-
:param
|
|
1146
|
-
:param
|
|
1146
|
+
:param lexicon_file: lexicon XML file
|
|
1147
|
+
:param phoneme_vocab_file: defines the vocab, label indices.
|
|
1148
|
+
If not given, automatically inferred via all (sorted) phonemes from the lexicon.
|
|
1149
|
+
:param allo_num_states: how much HMM states per allophone (all but silence)
|
|
1150
|
+
:param allo_context_len: how much context to store left and right. 1 -> triphone
|
|
1151
|
+
:param state_tying_file: for state-tying, if you want that
|
|
1152
|
+
:param add_silence_beginning: prob of adding silence at beginning
|
|
1153
|
+
:param add_silence_between_words: prob of adding silence between words
|
|
1154
|
+
:param add_silence_end: prob of adding silence at end
|
|
1155
|
+
:param repetition: prob of repeating an allophone
|
|
1156
|
+
:param silence_repetition: prob of repeating the silence allophone
|
|
1157
|
+
:param silence_lemma_orth: silence orth in the lexicon
|
|
1158
|
+
:param extra_begin_lemma: {"phons": [{"phon": "P1 P2 ...", ...}, ...], ...}.
|
|
1159
|
+
If given, then with prob add_extra_begin_lemma, this will be added at the beginning.
|
|
1160
|
+
:param add_extra_begin_lemma:
|
|
1161
|
+
:param extra_end_lemma: just like ``extra_begin_lemma``, but for the end
|
|
1162
|
+
:param add_extra_end_lemma:
|
|
1147
1163
|
"""
|
|
1148
1164
|
self.lexicon = Lexicon(lexicon_file)
|
|
1149
1165
|
self.phonemes = sorted(self.lexicon.phonemes.keys(), key=lambda s: self.lexicon.phonemes[s]["index"])
|
|
1166
|
+
self.phoneme_vocab = Vocabulary(phoneme_vocab_file, unknown_label=None) if phoneme_vocab_file else None
|
|
1150
1167
|
self.rnd = Random(0)
|
|
1151
1168
|
self.allo_num_states = allo_num_states
|
|
1152
1169
|
self.allo_context_len = allo_context_len
|
|
@@ -1155,40 +1172,42 @@ class PhoneSeqGenerator:
|
|
|
1155
1172
|
self.add_silence_end = add_silence_end
|
|
1156
1173
|
self.repetition = repetition
|
|
1157
1174
|
self.silence_repetition = silence_repetition
|
|
1158
|
-
self.si_lemma = self.lexicon.lemmas[
|
|
1159
|
-
self.si_phone = self.si_lemma["phons"][0]["phon"]
|
|
1160
|
-
if state_tying_file
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1175
|
+
self.si_lemma: Dict[str, Any] = self.lexicon.lemmas[silence_lemma_orth]
|
|
1176
|
+
self.si_phone: str = self.si_lemma["phons"][0]["phon"]
|
|
1177
|
+
self.state_tying = StateTying(state_tying_file) if state_tying_file else None
|
|
1178
|
+
if self.phoneme_vocab:
|
|
1179
|
+
assert not self.state_tying
|
|
1180
|
+
self.extra_begin_lemma = extra_begin_lemma
|
|
1181
|
+
self.add_extra_begin_lemma = add_extra_begin_lemma
|
|
1182
|
+
self.extra_end_lemma = extra_end_lemma
|
|
1183
|
+
self.add_extra_end_lemma = add_extra_end_lemma
|
|
1184
|
+
|
|
1185
|
+
def random_seed(self, seed: int):
|
|
1186
|
+
"""Reset RNG via given seed"""
|
|
1169
1187
|
self.rnd.seed(seed)
|
|
1170
1188
|
|
|
1171
|
-
def get_class_labels(self):
|
|
1172
|
-
"""
|
|
1173
|
-
:
|
|
1174
|
-
|
|
1175
|
-
|
|
1189
|
+
def get_class_labels(self) -> List[str]:
|
|
1190
|
+
""":return: class labels"""
|
|
1191
|
+
if self.phoneme_vocab:
|
|
1192
|
+
return self.phoneme_vocab.labels
|
|
1193
|
+
elif self.state_tying:
|
|
1176
1194
|
# State tying labels. Represented by some allophone state str.
|
|
1177
1195
|
return ["|".join(sorted(self.state_tying.class_map[i])) for i in range(self.state_tying.num_classes)]
|
|
1178
1196
|
else:
|
|
1179
1197
|
# The phonemes are the labels.
|
|
1180
1198
|
return self.phonemes
|
|
1181
1199
|
|
|
1182
|
-
def seq_to_class_idxs(self, phones, dtype=None):
|
|
1200
|
+
def seq_to_class_idxs(self, phones: List[AllophoneState], dtype: Optional[str] = None) -> numpy.ndarray:
|
|
1183
1201
|
"""
|
|
1184
|
-
:param
|
|
1185
|
-
:param
|
|
1186
|
-
:
|
|
1187
|
-
:returns 1D numpy array with the indices
|
|
1202
|
+
:param phones: list of allophone states
|
|
1203
|
+
:param dtype: eg "int32". "int32" by default
|
|
1204
|
+
:returns: 1D numpy array with the indices
|
|
1188
1205
|
"""
|
|
1189
1206
|
if dtype is None:
|
|
1190
1207
|
dtype = "int32"
|
|
1191
|
-
if self.
|
|
1208
|
+
if self.phoneme_vocab:
|
|
1209
|
+
return numpy.array([self.phoneme_vocab.label_to_id(a.id) for a in phones], dtype=dtype)
|
|
1210
|
+
elif self.state_tying:
|
|
1192
1211
|
# State tying indices.
|
|
1193
1212
|
return numpy.array([self.state_tying.allo_map[a.format()] for a in phones], dtype=dtype)
|
|
1194
1213
|
else:
|
|
@@ -1196,11 +1215,9 @@ class PhoneSeqGenerator:
|
|
|
1196
1215
|
# It should not happen that we don't have some phoneme. The lexicon should not be inconsistent.
|
|
1197
1216
|
return numpy.array([self.lexicon.phonemes[p.id]["index"] for p in phones], dtype=dtype)
|
|
1198
1217
|
|
|
1199
|
-
def
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
:rtype: typing.Iterator[typing.Dict[str]]
|
|
1203
|
-
"""
|
|
1218
|
+
def _iter_orth_lemmas(self, orth: str) -> Generator[Dict[str, Any], None, None]:
|
|
1219
|
+
if self.extra_begin_lemma and self.rnd.random() < self.add_extra_begin_lemma:
|
|
1220
|
+
yield self.extra_begin_lemma
|
|
1204
1221
|
if self.rnd.random() < self.add_silence_beginning:
|
|
1205
1222
|
yield self.si_lemma
|
|
1206
1223
|
symbols = list(orth.split())
|
|
@@ -1224,26 +1241,25 @@ class PhoneSeqGenerator:
|
|
|
1224
1241
|
yield self.si_lemma
|
|
1225
1242
|
if self.rnd.random() < self.add_silence_end:
|
|
1226
1243
|
yield self.si_lemma
|
|
1244
|
+
if self.extra_end_lemma and self.rnd.random() < self.add_extra_end_lemma:
|
|
1245
|
+
yield self.extra_end_lemma
|
|
1227
1246
|
|
|
1228
|
-
def orth_to_phones(self, orth):
|
|
1229
|
-
"""
|
|
1230
|
-
:param str orth:
|
|
1231
|
-
:rtype: str
|
|
1232
|
-
"""
|
|
1247
|
+
def orth_to_phones(self, orth: str) -> str:
|
|
1248
|
+
""":return: space-separated phones"""
|
|
1233
1249
|
phones = []
|
|
1234
|
-
for lemma in self.
|
|
1250
|
+
for lemma in self._iter_orth_lemmas(orth):
|
|
1235
1251
|
phon = self.rnd.choice(lemma["phons"])
|
|
1236
|
-
phones
|
|
1252
|
+
phones.append(phon["phon"])
|
|
1237
1253
|
return " ".join(phones)
|
|
1238
1254
|
|
|
1239
1255
|
# noinspection PyMethodMayBeStatic
|
|
1240
|
-
def _phones_to_allos(self, phones):
|
|
1256
|
+
def _phones_to_allos(self, phones: Iterator[str]) -> Generator[AllophoneState, None, None]:
|
|
1241
1257
|
for p in phones:
|
|
1242
1258
|
a = AllophoneState()
|
|
1243
1259
|
a.id = p
|
|
1244
1260
|
yield a
|
|
1245
1261
|
|
|
1246
|
-
def _random_allo_silence(self, phone=None):
|
|
1262
|
+
def _random_allo_silence(self, phone: Optional[str] = None) -> Generator[AllophoneState, None, None]:
|
|
1247
1263
|
if phone is None:
|
|
1248
1264
|
phone = self.si_phone
|
|
1249
1265
|
while True:
|
|
@@ -1256,7 +1272,7 @@ class PhoneSeqGenerator:
|
|
|
1256
1272
|
if self.rnd.random() >= self.silence_repetition:
|
|
1257
1273
|
break
|
|
1258
1274
|
|
|
1259
|
-
def _allos_add_states(self, allos):
|
|
1275
|
+
def _allos_add_states(self, allos: Iterator[AllophoneState]) -> Generator[AllophoneState, None, None]:
|
|
1260
1276
|
for _a in allos:
|
|
1261
1277
|
if _a.id == self.si_phone:
|
|
1262
1278
|
for a in self._random_allo_silence(_a.id):
|
|
@@ -1274,9 +1290,9 @@ class PhoneSeqGenerator:
|
|
|
1274
1290
|
if self.rnd.random() >= self.repetition:
|
|
1275
1291
|
break
|
|
1276
1292
|
|
|
1277
|
-
def _allos_set_context(self, allos):
|
|
1293
|
+
def _allos_set_context(self, allos: List[AllophoneState]) -> None:
|
|
1278
1294
|
"""
|
|
1279
|
-
:param
|
|
1295
|
+
:param allos: modify inplace, ``context_history``, ``context_future``
|
|
1280
1296
|
"""
|
|
1281
1297
|
if self.allo_context_len == 0:
|
|
1282
1298
|
return
|
|
@@ -1297,15 +1313,14 @@ class PhoneSeqGenerator:
|
|
|
1297
1313
|
else:
|
|
1298
1314
|
ctx = []
|
|
1299
1315
|
|
|
1300
|
-
def generate_seq(self, orth):
|
|
1316
|
+
def generate_seq(self, orth: str) -> List[AllophoneState]:
|
|
1301
1317
|
"""
|
|
1302
|
-
:param
|
|
1303
|
-
:
|
|
1304
|
-
:returns allophone state list. those will have repetitions etc
|
|
1318
|
+
:param orth: orthography as a str. orth.split() should give words in the lexicon
|
|
1319
|
+
:returns: allophone state list. those will have repetitions etc
|
|
1305
1320
|
"""
|
|
1306
|
-
allos
|
|
1307
|
-
for lemma in self.
|
|
1308
|
-
phon = self.rnd.choice(lemma["phons"])
|
|
1321
|
+
allos: List[AllophoneState] = []
|
|
1322
|
+
for lemma in self._iter_orth_lemmas(orth):
|
|
1323
|
+
phon = self.rnd.choice(lemma["phons"]) # space-separated phones in phon["phon"]
|
|
1309
1324
|
l_allos = list(self._phones_to_allos(phon["phon"].split()))
|
|
1310
1325
|
l_allos[0].mark_initial()
|
|
1311
1326
|
l_allos[-1].mark_final()
|
|
@@ -1314,13 +1329,13 @@ class PhoneSeqGenerator:
|
|
|
1314
1329
|
allos = list(self._allos_add_states(allos))
|
|
1315
1330
|
return allos
|
|
1316
1331
|
|
|
1317
|
-
def _random_phone_seq(self, prob_add=0.8):
|
|
1332
|
+
def _random_phone_seq(self, prob_add: float = 0.8) -> Generator[str, None, None]:
|
|
1318
1333
|
while True:
|
|
1319
1334
|
yield self.rnd.choice(self.phonemes)
|
|
1320
1335
|
if self.rnd.random() >= prob_add:
|
|
1321
1336
|
break
|
|
1322
1337
|
|
|
1323
|
-
def _random_allo_seq(self, prob_word_add=0.8):
|
|
1338
|
+
def _random_allo_seq(self, prob_word_add: float = 0.8) -> List[AllophoneState]:
|
|
1324
1339
|
allos = []
|
|
1325
1340
|
while True:
|
|
1326
1341
|
phones = self._random_phone_seq()
|
|
@@ -1333,15 +1348,14 @@ class PhoneSeqGenerator:
|
|
|
1333
1348
|
self._allos_set_context(allos)
|
|
1334
1349
|
return list(self._allos_add_states(allos))
|
|
1335
1350
|
|
|
1336
|
-
def generate_garbage_seq(self, target_len):
|
|
1351
|
+
def generate_garbage_seq(self, target_len: int) -> List[AllophoneState]:
|
|
1337
1352
|
"""
|
|
1338
|
-
:param
|
|
1339
|
-
:
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
into a list of allophones in a similar way than generate_seq().
|
|
1353
|
+
:param target_len: len of the returned seq
|
|
1354
|
+
:returns: allophone state list. those will have repetitions etc.
|
|
1355
|
+
It will randomly generate a sequence of phonemes and transform that
|
|
1356
|
+
into a list of allophones in a similar way than generate_seq().
|
|
1343
1357
|
"""
|
|
1344
|
-
allos = []
|
|
1358
|
+
allos: List[AllophoneState] = []
|
|
1345
1359
|
while True:
|
|
1346
1360
|
allos += self._random_allo_seq()
|
|
1347
1361
|
# Add some silence so that left/right context is correct for further allophones.
|
|
@@ -1435,7 +1449,9 @@ class TranslationDataset(CachedDataset2):
|
|
|
1435
1449
|
for prefix in self._main_data_key_map.keys()
|
|
1436
1450
|
if not (prefix == self.target_file_prefix and search_without_reference)
|
|
1437
1451
|
]
|
|
1438
|
-
self._data_files
|
|
1452
|
+
self._data_files: Dict[str, Union[None, BinaryIO, IOBase]] = {
|
|
1453
|
+
prefix: self._get_data_file(prefix) for prefix in self._files_to_read
|
|
1454
|
+
}
|
|
1439
1455
|
|
|
1440
1456
|
self._data_keys = self._source_data_keys + self._target_data_keys
|
|
1441
1457
|
self._data = {data_key: [] for data_key in self._data_keys} # type: typing.Dict[str,typing.List[numpy.ndarray]]
|
|
@@ -1541,11 +1557,10 @@ class TranslationDataset(CachedDataset2):
|
|
|
1541
1557
|
filename = cf(filename)
|
|
1542
1558
|
return filename
|
|
1543
1559
|
|
|
1544
|
-
def _get_data_file(self, prefix):
|
|
1560
|
+
def _get_data_file(self, prefix) -> Union[BinaryIO, IOBase]:
|
|
1545
1561
|
"""
|
|
1546
1562
|
:param str prefix: e.g. "source" or "target"
|
|
1547
1563
|
:return: full filename
|
|
1548
|
-
:rtype: io.FileIO
|
|
1549
1564
|
"""
|
|
1550
1565
|
import os
|
|
1551
1566
|
|
|
@@ -1077,7 +1077,7 @@ class Engine(EngineBase):
|
|
|
1077
1077
|
get_model_func = self.config.typed_value("get_model")
|
|
1078
1078
|
assert get_model_func, "get_model not defined in config"
|
|
1079
1079
|
sentinel_kw = util.get_fwd_compat_kwargs()
|
|
1080
|
-
model = get_model_func(epoch=epoch, step=step, **sentinel_kw)
|
|
1080
|
+
model = get_model_func(epoch=epoch, step=step, device=self._device, **sentinel_kw)
|
|
1081
1081
|
self._orig_model = model
|
|
1082
1082
|
if isinstance(model, rf.Module):
|
|
1083
1083
|
self._pt_model = rf_module_to_pt_module(model)
|
|
@@ -1624,7 +1624,7 @@ class TorchBackend(Backend[torch.Tensor]):
|
|
|
1624
1624
|
assert isinstance(static, bool)
|
|
1625
1625
|
if static:
|
|
1626
1626
|
assert seed is not None
|
|
1627
|
-
generator = torch.Generator()
|
|
1627
|
+
generator = torch.Generator(device=out.raw_tensor.device)
|
|
1628
1628
|
generator.manual_seed(seed)
|
|
1629
1629
|
else:
|
|
1630
1630
|
assert seed is None
|
|
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.20250206.151011 → returnn-1.20250211.110723}/demos/demo-hyper-param-tuning.config
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/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.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-chunking-blstm.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-contribrnn-lstm.12ax.config
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-maxgradnorm-lstm.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-native-lstm-lowmem.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-native-lstm.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-native-lstm2.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-native-lstm2.12ax.tuned.config
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-neural-transducer.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-rec-explicit-lstm.config
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-rec-explicit-rnn.config
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-search-compiled-graph.py
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-tf-vanilla-lstm.12ax.config
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/demo-upd-mult-model.lstm.12ax.config
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/IAM_lines/a01-000u-00.png
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/IAM_lines/a01-007-04.png
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/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.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/IAM/create_IAM_dataset.py
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/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.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial/create_test_h5.py
RENAMED
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial/forwardconfig
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/demos/mdlstm/artificial_rgb/forwardconfig
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20250206.151011 → returnn-1.20250211.110723}/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
|
|
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
|