Remove ZipformerEncoder.norm

This commit is contained in:
Daniel Povey 2022-12-29 16:00:34 +08:00
parent 0de1184c6d
commit fbdb12cf77

View File

@ -216,7 +216,6 @@ class Zipformer(EncoderInterface):
encoder_dim[-1],
downsample=output_downsampling_factor,
dropout=dropout)
self.norm = BasicNorm(num_channels=encoder_dim[-1])
def _init_skip_modules(self):
@ -358,7 +357,6 @@ class Zipformer(EncoderInterface):
lengths = (lengths + 1) // 2
x = x.permute(1, 0, 2) # (T, N, C) ->(N, T, C)
x = self.norm(x)
return x, lengths