From ee36decb1a86f4b2d76967098ca589d5332dadf7 Mon Sep 17 00:00:00 2001 From: OliverCai0 <47547771+OliverCai0@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:00:45 -0600 Subject: [PATCH] typing addition --- whisper/decoding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper/decoding.py b/whisper/decoding.py index 49485d0..312a9e0 100644 --- a/whisper/decoding.py +++ b/whisper/decoding.py @@ -169,7 +169,7 @@ class PyTorchInference(Inference): self.kv_cache = {} self.hooks = [] - def rearrange_kv_cache(self, source_indices): + def rearrange_kv_cache(self, source_indices : List[int]): if source_indices != list(range(len(source_indices))): for module in self.kv_modules: # update the key/value cache to contain the selected sequences