Skip to content

Commit de0ac69

Browse files
committed
update documentation
1 parent e2012c4 commit de0ac69

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

docs/configuration_reference/model_loading.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ Model Loading
1010
For more details, please refer to
1111
`EngineBase <https://github.com/rwth-i6/returnn/blob/master/returnn/engine/base.py>`_
1212
and also check
13-
:class:`CustomCheckpointLoader <returnn.tf.network.CustomCheckpointLoader>`.
13+
:class:`CustomCheckpointLoader <returnn.tf.network.CustomCheckpointLoader>`
14+
and the
15+
`"Different ways to import parameters" <https://github.com/rwth-i6/returnn/wiki/Different-ways-to-import-parameters>`_
16+
page.
17+
18+
allow_random_model_init
19+
Initialize a model randomly.
20+
This can be useful if you want to use only ``preload_from_files`` to load
21+
multiple different models into one config for decoding without using ``load``.
1422

1523
import_model_train_epoch1
1624
If a path to a valid model is provided
@@ -42,6 +50,9 @@ preload_from_files
4250
"filename": ".../net-model/network.163", # your checkpoint file, mandatory
4351
"init_for_train": True, # only load the checkpoint at the start of training epoch 1, default is False
4452
"ignore_missing": True, # if the checkpoint only partly covers your model, default is False
53+
"ignore_params": ["some_parameter", ...], # list of parameter names that should not be loaded
54+
"ignore_params_prefixes": ["some_prefix_", ...], # list of parameter prefixes that should not be loaded
55+
"var_name_mapping": {"name_in_graph": "name_in_checkpoint", ...}, # map non-matching parameter names
4556
"prefix": "submodel1_", # only load parameters for layers starting with the given prefix
4657
}
4758
}

docs/layer_reference/generative.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ Range in Axis Layer
2424
.. autoclass:: returnn.tf.layers.basic.RangeInAxisLayer
2525
:members:
2626
:undoc-members:
27+
28+
Range from Length Layer
29+
-----------------------
30+
31+
.. autoclass:: returnn.tf.layers.basic.RangeFromLengthLayer
32+
:members:
33+
:undoc-members:

0 commit comments

Comments
 (0)