espnet2.spk.layers.rawnet_block.AFMS
Less than 1 minute
espnet2.spk.layers.rawnet_block.AFMS
class espnet2.spk.layers.rawnet_block.AFMS(nb_dim: int)
Bases: Module
Alpha-Feature map scaling, added to the output of each residual block[1,2].
Reference: [1] RawNet2 : https://www.isca-speech.org/archive/Interspeech_2020/pdfs/1011.pdf [2] AMFS : https://www.koreascience.or.kr/article/JAKO202029757857763.page
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(x)
Defines the computation performed at every call.
Should be overridden by all subclasses.
NOTE
Although the recipe for forward pass needs to be defined within this function, one should call the Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.