From d3b359298608534dcc48344d98179045a57c4e41 Mon Sep 17 00:00:00 2001 From: Daniel Povey Date: Thu, 12 Jan 2023 21:18:34 +0800 Subject: [PATCH] Fix bug to allow down+up sampling --- egs/librispeech/ASR/pruned_transducer_stateless7/zipformer.py | 1 - 1 file changed, 1 deletion(-) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless7/zipformer.py b/egs/librispeech/ASR/pruned_transducer_stateless7/zipformer.py index be5e9a7b1..c7382b424 100644 --- a/egs/librispeech/ASR/pruned_transducer_stateless7/zipformer.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless7/zipformer.py @@ -908,7 +908,6 @@ class SimpleCombiner(torch.nn.Module): dim2: int, min_weight: Tuple[float, float] = (0., 0.)): super(SimpleCombiner, self).__init__() - assert dim2 >= dim1 initial_weight1 = 0.1 self.weight1 = nn.Parameter(torch.full((dim2,), initial_weight1)) self.min_weight = min_weight