Skip to content

Commit

Permalink
Bug fix for espnet#76
Browse files Browse the repository at this point in the history
  • Loading branch information
Masao-Someki committed Oct 14, 2023
1 parent 318eacd commit 729597c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def forward(
] # (B, L, overlap)

block_num = max(0, xs_pad.size(1) - self.overlap_size) // self.hop_size
res_frame_num = xs_pad.size(1) - self.hop_size * block_num - 1
res_frame_num = xs_pad.size(1) - self.hop_size * block_num
buffer_after_downsampling = xs_pad[:, -res_frame_num:]
xs_pad = xs_pad[:, : block_num * self.hop_size + self.overlap_size]

Expand Down

0 comments on commit 729597c

Please sign in to comment.