mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
fix bug, >> -> <<
This commit is contained in:
parent
5cfdbd3699
commit
2057124004
@ -1585,7 +1585,7 @@ class EmformerEncoder(nn.Module):
|
||||
memory_mask = (
|
||||
(
|
||||
(
|
||||
num_processed_frames << int(math.log(self.chunk_length, 2))
|
||||
num_processed_frames >> int(math.log(self.chunk_length, 2))
|
||||
).view(x.size(1), 1)
|
||||
<= torch.arange(self.memory_size, device=x.device).expand(
|
||||
x.size(1), self.memory_size
|
||||
|
@ -1493,7 +1493,7 @@ class EmformerEncoder(nn.Module):
|
||||
memory_mask = (
|
||||
(
|
||||
(
|
||||
num_processed_frames << int(math.log(self.chunk_length, 2))
|
||||
num_processed_frames >> int(math.log(self.chunk_length, 2))
|
||||
).view(x.size(1), 1)
|
||||
<= torch.arange(self.memory_size, device=x.device).expand(
|
||||
x.size(1), self.memory_size
|
||||
|
Loading…
x
Reference in New Issue
Block a user