mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Remove pointless assertion
This commit is contained in:
parent
8fce9a05fc
commit
24e8a7a8fd
@ -671,7 +671,6 @@ class SubformerEncoder(nn.Module):
|
||||
if seq_len <= self.chunk_size or seq_len % self.chunk_size != 0:
|
||||
return [ seq_len ], [ 0 ] * len(self.layers)
|
||||
else:
|
||||
assert seq_len % self.chunk_size == 0, (seq_len, self.chunk_size)
|
||||
num_layers = len(self.layers)
|
||||
chunk_indexes = [0, 1] * (num_layers + 1 // 2)
|
||||
return [ self.chunk_size, seq_len ], chunk_indexes[:num_layers]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user