Fix for style check

This commit is contained in:
yifanyang 2023-02-06 18:51:43 +08:00
parent 3554ed32db
commit 06b583ee84

View File

@ -672,7 +672,7 @@ def greedy_search_batch(
timestamps = [[] for _ in range(N)]
decoder_input = torch.tensor(hyps, device=device, dtype=torch.int64)[
:, -context_size:
:, -context_size:
] # (N, context_size)
k = torch.zeros(N, 1, device=device, dtype=torch.int64)