returnn 1.20230404.130855__tar.gz → 1.20230404.175609__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.20230404.130855/returnn.egg-info → returnn-1.20230404.175609}/PKG-INFO +1 -1
- returnn-1.20230404.175609/_setup_info_generated.py +2 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/_backend.py +10 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/engine.py +5 -5
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/basic.py +17 -10
- {returnn-1.20230404.130855 → returnn-1.20230404.175609/returnn.egg-info}/PKG-INFO +1 -1
- returnn-1.20230404.130855/_setup_info_generated.py +0 -2
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/.editorconfig +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/.gitignore +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/.gitmodules +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/.kateconfig +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/CHANGELOG.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/CODEOWNERS +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/CONTRIBUTING.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/LICENSE +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/MANIFEST.in +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/README.rst +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/12AX.cluster_map +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/_setup_returnn_env.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-fwd.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-horovod-mpi.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-horovod-mpi.py.sh +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-horovod-mpi.sh +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-hyper-param-tuning.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-iter-dataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-list-devices.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-lua-torch-layer.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-pretrain.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-record-and-push-to-webserver.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-returnn-as-framework.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-rhn-enwik8.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-sprint-interface.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-att-copy.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-attention.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-chunking-blstm.12ax.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-contribrnn-lstm.12ax.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-enc-dec.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-hard-att-copy.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-lstm-benchmark.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-maxgradnorm-lstm.12ax.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-native-lstm-lowmem.12ax.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-native-lstm.12ax.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-native-lstm2.12ax.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-native-lstm2.12ax.tuned.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-neural-transducer.12ax.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-rec-explicit-lstm.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-rec-explicit-rnn.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-rec-self-att.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-search-compiled-graph.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-vanilla-lstm.12ax.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-timit-lstm-ctc.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-torch.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-upd-mult-model.lstm.12ax.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo.sh +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/IAM_lines/a01-000u-00.png +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/IAM_lines/a01-007-04.png +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/IAM_lines/a01-007-06.png +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/README.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/chars.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/config_demo +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/config_fwd +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/config_real +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/create_IAM_dataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/decode.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/features/raw/demo.h5 +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/go.sh +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/lines.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/split/eval.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/split/train.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/split/valid.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/README.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial/create_test_h5.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial/forwardconfig +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial/go.sh +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial/trainconfig +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial_rgb/create_test_h5.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial_rgb/forwardconfig +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial_rgb/go.sh +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial_rgb/trainconfig +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/pyproject.toml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/requirements.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/__main__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/__old_mod_loader__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/__setup__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/config.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/audio.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/basic.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/bundle_file.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/cached.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/cached2.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/generating.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/hdf.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/lm.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/map.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/meta.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/multi_proc.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/normalization_data.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/numpy_dump.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/raw_wav.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/sprint.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/stereo.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/util/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/util/feature_extraction.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/util/vocabulary.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/engine/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/engine/base.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/engine/batch.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/__main__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/.git +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/.gitignore +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/LICENSE +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/README.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/aligner.gif +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/check.png +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/core.cu +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/core.h +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/core_cpu.cpp +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/pytorch_binding/LICENSE +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/pytorch_binding/MANIFEST.in +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/pytorch_binding/README.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/pytorch_binding/binding.cpp +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/pytorch_binding/core.cu +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/pytorch_binding/core.h +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/pytorch_binding/requirements.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/pytorch_binding/setup.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/pytorch_binding/warp_rna/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/pytorch_binding/warp_rna/test.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/ref_rna.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/setup.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/src/warp_rna_op.cc +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/src/warp_rna_op_kernel_tmpl.h +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/tensorflow_binding/warp_rna/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/test.cpp +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/README.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/edit.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/reroute.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/select.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/subgraph.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/transform.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/util.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/_numpy_backend.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/_utils.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/array_.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/const.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/dims.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/dtype.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/init.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/linear.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/loss.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/math_.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/matmul.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/module.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/parameter.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/rand.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/reduce.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/run_ctx.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/state.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/frontend/types.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/import_/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/import_/common.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/import_/git.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/import_/import_.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/learning_rate_control.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/log.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/native_op.cpp +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/native_op.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/pretrain.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/sprint/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/sprint/cache.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/sprint/control.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/sprint/error_signals.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/sprint/extern_interface.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/sprint/interface.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/README.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/_dim_extra.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/_tensor_extra.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/_tensor_mixin_base.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/_tensor_op_overloads.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/control_flow_ctx.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/dim.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/marked_dim.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/tensor.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tensor/tensor_dict.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/compat.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/data_pipeline.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/distributed.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_layers/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_layers/_backend.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_layers/_utils.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_layers/config_entry_points.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_layers/debug_eager_mode.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_layers/dims.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_layers/layer.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_layers/make_layer.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_layers/prev_tensor_ref.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_low_level/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/frontend_low_level/_backend.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/horovod.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/hyper_param_tuning.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/layers/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/layers/base.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/layers/basic.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/layers/rec.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/layers/segmental_model.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/layers/signal_processing.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/native_op.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/network.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/sprint.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/updater.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/util/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/util/basic.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/util/data.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/util/ken_lm.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/tf/util/open_fst.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/README.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/data/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/data/pipeline.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/data/returnn_dataset_wrapper.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/data/tensor_utils.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/engine.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/frontend/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/frontend/_backend.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/frontend/_rand.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/functional/README.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/functional/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/torch/updater.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/__init__.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/better_exchook.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/bpe.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/debug.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/debug_helpers.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/fsa.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/literal_py_to_pickle.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/pprint.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/py-to-pickle.cpp +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/sig_proc.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/util/task_system.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn.egg-info/SOURCES.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn.egg-info/dependency_links.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn.egg-info/top_level.txt +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/rnn.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/setup.cfg +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/setup.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/DummySprintExec.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm-inspection-profile.xml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/.gitignore +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/.name +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/codeStyleSettings.xml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/codeStyles/Project.xml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/codeStyles/codeStyleConfig.xml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/inspectionProfiles/Project_Default.xml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/misc.xml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/modules.xml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/returnn.iml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/PyCharm.idea/scopes/scope_settings.xml +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/_set_num_threads1.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/_setup_returnn_env.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/_setup_test_env.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/bpe-unicode-demo.codes +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/bpe-unicode-demo.vocab +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/lexicon_opt.fst +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/lexicon_opt.isyms +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/lexicon_opt.jpg +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/lexicon_opt.osyms +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/lint_common.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/pycharm-inspect.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/pylint.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/returnn-as-framework.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/rf_utils.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/spelling.dic +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_Config.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_Dataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_Fsa.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_GeneratingDataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_HDFDataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_LearningRateControl.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_Log.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_MultiProcDataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_PTDataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_Pretrain.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_ResNet.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_SprintDataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_SprintInterface.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TFEngine.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TFNativeOp.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TFNetworkLayer.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TFNetworkRecLayer.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TFNetworkSigProcLayer.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TFUpdater.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TFUtil.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TF_determinism.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TaskSystem.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TaskSystem_SharedMem.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_TranslationDataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_Util.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_demos.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_fork_exec.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_hdf_dump.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_rf_base.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_tensor.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_tools.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_torch_frontend.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tests/test_torch_internal_frontend.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/_setup_returnn_env.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/analyze-dataset-batches.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/bliss-collect-seq-lens.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/bliss-dump-text.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/bliss-get-segment-names.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/bliss-to-ogg-zip.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/bpe-create-lexicon.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/calculate-word-error-rate.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/cleanup-old-models.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/collect-orth-symbols.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/collect-words.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/compile_native_op.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/compile_tf_graph.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/debug-dump-search-scores.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/debug-plot-search-scores.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/dump-dataset-raw-strings.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/dump-dataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/dump-forward-stats.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/dump-forward.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/dump-network-json.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/dump-pickle.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/extract_state_tying_from_dataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/get-attention-weights.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/get-best-model-epoch.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/hdf_dump.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/hdf_dump_translation_dataset.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/import-blocks-mt-model.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/import-t2t-mt-model.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/.gitignore +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/Makefile +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/README.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/example/README.md +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/example/libs_list +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/example/network.040/i600_m600_m600.sgd_b16_lr0_cl2.newbobabs.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/example/network.040/i600_m600_m600.sgd_b16_lr0_cl2.newbobabs.keep_over_epoch.lstm2.config +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/example/rescore_lattice.sh +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/example/state_vars_list +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/example/tensor_names_list +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/file.h +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/htklatticerescorer.cc +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/htklatticerescorer.h +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/main.cc +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/rescorer.h +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/vocabulary.cc +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/lattice_rescorer/vocabulary.h +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/tf_avg_checkpoints.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/tf_inspect_checkpoint.py +0 -0
- {returnn-1.20230404.130855 → returnn-1.20230404.175609}/tools/tf_inspect_summary_log.py +0 -0
|
@@ -592,6 +592,16 @@ global_backend = object.__new__(Backend)
|
|
|
592
592
|
_dispatch_table = {} # type: Dict[Type, Type[Backend]]
|
|
593
593
|
|
|
594
594
|
|
|
595
|
+
def select_backend_tf():
|
|
596
|
+
"""
|
|
597
|
+
Selects the RETURNN layers backend (based on TF).
|
|
598
|
+
"""
|
|
599
|
+
import tensorflow as tf
|
|
600
|
+
|
|
601
|
+
backend = get_backend_by_raw_tensor_type(tf.Tensor) # side-effect: register it
|
|
602
|
+
global_backend.__class__ = backend
|
|
603
|
+
|
|
604
|
+
|
|
595
605
|
def select_backend_returnn_layers_tf():
|
|
596
606
|
"""
|
|
597
607
|
Selects the RETURNN layers backend (based on TF).
|
|
@@ -860,11 +860,11 @@ class Engine(EngineBase):
|
|
|
860
860
|
"""
|
|
861
861
|
super(Engine, self).__init__(config=config)
|
|
862
862
|
if not log.initialized:
|
|
863
|
-
log.init_by_config(config)
|
|
863
|
+
log.init_by_config(self.config)
|
|
864
864
|
if not BehaviorVersion.is_set():
|
|
865
|
-
BehaviorVersion.set(config.int("behavior_version", None))
|
|
865
|
+
BehaviorVersion.set(self.config.int("behavior_version", None))
|
|
866
866
|
if BackendEngine.selected_engine is None:
|
|
867
|
-
BackendEngine.select_engine(
|
|
867
|
+
BackendEngine.select_engine(default_fallback_engine=BackendEngine.TensorFlow, config=self.config)
|
|
868
868
|
assert BackendEngine.is_tensorflow_selected()
|
|
869
869
|
self.orig_config = {} # see _maybe_update_config
|
|
870
870
|
self.custom_get_net_dict = None # type: typing.Optional[typing.Callable]
|
|
@@ -882,8 +882,8 @@ class Engine(EngineBase):
|
|
|
882
882
|
self._num_trained_epochs = 0 # type: int # just a counter
|
|
883
883
|
self._num_net_reinit = 0 # type: int
|
|
884
884
|
self.use_dynamic_train_flag = False
|
|
885
|
-
self.use_search_flag = config.value("task", None) == "search"
|
|
886
|
-
self.use_eval_flag = config.value("task", None) != "forward"
|
|
885
|
+
self.use_search_flag = self.config.value("task", None) == "search"
|
|
886
|
+
self.use_eval_flag = self.config.value("task", None) != "forward"
|
|
887
887
|
self._const_cache = {} # type: typing.Dict[str,tf.Tensor]
|
|
888
888
|
self.preload_from_files = None # type: typing.Optional[typing.Dict[str,typing.Dict[str]]]
|
|
889
889
|
self.max_seqs = None # type: typing.Optional[int]
|
|
@@ -116,8 +116,9 @@ class BackendEngine:
|
|
|
116
116
|
E.g. TensorFlow or PyTorch.
|
|
117
117
|
"""
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
TensorFlowNetDict = 1
|
|
120
|
+
TensorFlow = 2
|
|
121
|
+
Torch = 3 # PyTorch
|
|
121
122
|
selected_engine = None # type: typing.Optional[int] # One of the possible engines.
|
|
122
123
|
|
|
123
124
|
class CannotSelectEngine(Exception):
|
|
@@ -126,9 +127,10 @@ class BackendEngine:
|
|
|
126
127
|
"""
|
|
127
128
|
|
|
128
129
|
@classmethod
|
|
129
|
-
def select_engine(cls, engine=None, config=None):
|
|
130
|
+
def select_engine(cls, *, engine=None, default_fallback_engine=None, config=None):
|
|
130
131
|
"""
|
|
131
132
|
:param int engine: see the global class attribs for possible values
|
|
133
|
+
:param int|None default_fallback_engine: if engine is None and not defined in config, use this
|
|
132
134
|
:param returnn.config.Config config:
|
|
133
135
|
"""
|
|
134
136
|
assert cls.selected_engine is None, "already set"
|
|
@@ -139,20 +141,26 @@ class BackendEngine:
|
|
|
139
141
|
config = get_global_config()
|
|
140
142
|
engine = None
|
|
141
143
|
if config.bool("use_tensorflow", False):
|
|
142
|
-
engine = cls.
|
|
144
|
+
engine = cls.TensorFlowNetDict
|
|
143
145
|
if config.value("backend", None):
|
|
144
146
|
backend = config.value("backend", None)
|
|
145
147
|
engine = {
|
|
148
|
+
"tensorflow-net-dict": cls.TensorFlowNetDict,
|
|
146
149
|
"tensorflow": cls.TensorFlow,
|
|
147
150
|
"torch": cls.Torch,
|
|
148
151
|
}[backend]
|
|
149
152
|
if engine is None:
|
|
150
|
-
|
|
153
|
+
if default_fallback_engine is not None:
|
|
154
|
+
engine = default_fallback_engine
|
|
155
|
+
else:
|
|
156
|
+
engine = cls._get_default_engine()
|
|
151
157
|
|
|
152
158
|
# noinspection PyProtectedMember
|
|
153
159
|
from returnn.frontend import _backend
|
|
154
160
|
|
|
155
161
|
if engine == cls.TensorFlow:
|
|
162
|
+
_backend.select_backend_tf()
|
|
163
|
+
elif engine == cls.TensorFlowNetDict:
|
|
156
164
|
# Note that we assume that the user wants the RETURNN layers frontend (TF-based)
|
|
157
165
|
# and not the low-level TF frontend.
|
|
158
166
|
# If we want to expose the low-level TF frontend to the user directly at some point,
|
|
@@ -163,19 +171,18 @@ class BackendEngine:
|
|
|
163
171
|
cls.selected_engine = engine
|
|
164
172
|
|
|
165
173
|
@classmethod
|
|
166
|
-
def _get_default_engine(cls):
|
|
174
|
+
def _get_default_engine(cls) -> int:
|
|
167
175
|
"""
|
|
168
176
|
Select the backend engine. If both are installed Tensorflow is the default.
|
|
169
|
-
:rtype: int
|
|
170
177
|
"""
|
|
171
178
|
if "tensorflow" in sys.modules:
|
|
172
|
-
return cls.
|
|
179
|
+
return cls.TensorFlowNetDict
|
|
173
180
|
if "torch" in sys.modules:
|
|
174
181
|
return cls.Torch
|
|
175
182
|
try:
|
|
176
183
|
import tensorflow
|
|
177
184
|
|
|
178
|
-
return cls.
|
|
185
|
+
return cls.TensorFlowNetDict
|
|
179
186
|
except ImportError:
|
|
180
187
|
pass
|
|
181
188
|
try:
|
|
@@ -203,7 +210,7 @@ class BackendEngine:
|
|
|
203
210
|
"""
|
|
204
211
|
:rtype: bool
|
|
205
212
|
"""
|
|
206
|
-
return cls.get_selected_engine()
|
|
213
|
+
return cls.get_selected_engine() in {cls.TensorFlowNetDict, cls.TensorFlow}
|
|
207
214
|
|
|
208
215
|
@classmethod
|
|
209
216
|
def is_torch_selected(cls):
|
|
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.20230404.130855 → returnn-1.20230404.175609}/demos/demo-hyper-param-tuning.config
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/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
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-chunking-blstm.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-contribrnn-lstm.12ax.config
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-maxgradnorm-lstm.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-native-lstm-lowmem.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-native-lstm.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-native-lstm2.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-native-lstm2.12ax.tuned.config
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-neural-transducer.12ax.config
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-rec-explicit-lstm.config
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-rec-explicit-rnn.config
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-search-compiled-graph.py
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-tf-vanilla-lstm.12ax.config
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/demo-upd-mult-model.lstm.12ax.config
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/IAM_lines/a01-000u-00.png
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/IAM_lines/a01-007-04.png
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/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.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/IAM/create_IAM_dataset.py
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/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.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial/create_test_h5.py
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial/forwardconfig
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/demos/mdlstm/artificial_rgb/forwardconfig
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/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
|
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/normalization_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/datasets/util/feature_extraction.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/.git
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/.gitignore
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/LICENSE
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/README.md
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/aligner.gif
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/check.png
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/core.cu
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/core.h
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/core_cpu.cpp
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
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/ref_rna.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/WarpRna/warp-rna/test.cpp
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/README.md
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/reroute.py
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/select.py
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/subgraph.py
RENAMED
|
File without changes
|
{returnn-1.20230404.130855 → returnn-1.20230404.175609}/returnn/extern/graph_editor/transform.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
|
|
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
|
|
File without changes
|