Regularization Layers#
Dropout Layer#
- class returnn.tf.layers.basic.DropoutLayer(in_dim=None, out_dim=None, extra_deps=(), **kwargs)[source]#
Just the same as
CopyLayer
, because that one already supports dropout.- Parameters:
in_dim (Dim|None) – just for checking. but also, if this is provided, it will set the feature_dim to this.
out_dim (Dim|None) – alternative to in_dim. see in_dim doc.
extra_deps (list[LayerBase]) – Just add as an additional dependency, without really using it. This can have an effect though on the search beam, via
SelectSearchSourcesLayer
. We only have this here for theCopyLayer
because theget_out_data_from_opts()
must know about it and define the right beam. Also see the optioncollocate_with
, which is different in that it does not add a dependency. Note that this will not be real TF control dependencies, but it simply sets the dependency on the layer. If you want to have a real TF control dependency, useIdentityLayer
.
- output_before_activation: Optional[OutputWithActivation][source]#
- search_choices: Optional[SearchChoices][source]#