espnet2.enh.layers.adapt_layers.ConcatAdaptLayer
Less than 1 minute
espnet2.enh.layers.adapt_layers.ConcatAdaptLayer
class espnet2.enh.layers.adapt_layers.ConcatAdaptLayer(indim, enrolldim, ninputs=1)
Bases: Module
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(main, enroll)
ConcatAdaptLayer 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