fix bug, >> -> <<

This commit is contained in:
yaozengwei 2022-07-08 16:45:12 +08:00
parent 5cfdbd3699
commit 2057124004
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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