mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 18:24:18 +00:00
Update model.py
This commit is contained in:
parent
d2fe504163
commit
917e4868d6
@ -452,8 +452,9 @@ class LiGRU_Layer(torch.nn.Module):
|
||||
).data
|
||||
|
||||
# Sampling the mask
|
||||
left_boundary = self.drop_mask_cnt
|
||||
right_boundary = self.drop_mask_cnt + self.batch_size
|
||||
drop_mask = self.drop_masks[self.drop_mask_cnt:right_boundary]
|
||||
drop_mask = self.drop_masks[left_boundary:right_boundary]
|
||||
self.drop_mask_cnt = self.drop_mask_cnt + self.batch_size
|
||||
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user