espnet2.enh.layers.adapt_layers.MulAddAdaptLayer
Less than 1 minute
espnet2.enh.layers.adapt_layers.MulAddAdaptLayer
class espnet2.enh.layers.adapt_layers.MulAddAdaptLayer(indim, enrolldim, ninputs=1, do_addition=True)
Bases: Module
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(main, enroll)
MulAddAdaptLayer Forward.
- Parameters:
main –
tensor or tuple or list activations in the main neural network, which are adapted tuple/list may be useful when we want to apply the adaptation
to both normal and skip connection at once
enroll –
tensor or tuple or list embedding extracted from enrollment tuple/list may be useful when we want to apply the adaptation
to both normal and skip connection at once