[Misc] remove duplicate definition of seq_lens_tensor in model_runner.py (#5129)

This commit is contained in:
Hyunsung Lee 2024-05-30 22:56:19 +09:00 committed by GitHub
parent f758505c73
commit d79d9eaaff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -518,9 +518,6 @@ class ModelRunner:
else:
multi_modal_input = None
seq_lens_tensor = torch.tensor(seq_lens,
dtype=torch.int,
device=self.device)
query_lens_tensor = torch.tensor(query_lens,
dtype=torch.long,
device=self.device)