Skip to content

Commit

Permalink
Fixed whisper example
Browse files Browse the repository at this point in the history
  • Loading branch information
jafioti committed May 26, 2024
1 parent 89b6d75 commit ad2d73f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/whisper/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn main() {
.map(|_| (dec_cx.named_tensor("Keys"), dec_cx.named_tensor("Values")))
.collect();
cache_src.set_dyn(vec![], &[1, 6, 64, 0]);
let (logits, _, cache_dest) = decoder.forward((
let (logits, _, mut cache_dest) = decoder.forward((
encoder_output,
text_input,
&cache_src,
Expand Down Expand Up @@ -85,6 +85,7 @@ fn main() {
&mut text_input,
&mut encoder_output,
&mut cache_src,
&mut cache_dest,
&mut logits,
&mut decoder_params,
),
Expand Down

0 comments on commit ad2d73f

Please sign in to comment.