Skip to content

Commit

Permalink
fix wav2vec2 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudAshraf97 committed Sep 18, 2024
1 parent df5491d commit 2d3dad5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/layers/flash_attention.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace ctranslate2 {
void FlashMultiHeadAttention::operator()(const StorageView& queries,
const StorageView&,
const StorageView* values_lengths,
const StorageView* values_offsets,
StorageView& output,
StorageView* cached_keys,
StorageView* cached_values,
Expand Down
2 changes: 2 additions & 0 deletions src/layers/wav2vec2bert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ namespace ctranslate2 {
(*_self_attention)(buffer1,
buffer1,
nullptr,
nullptr,
buffer2,
nullptr,
nullptr,
Expand Down Expand Up @@ -147,6 +148,7 @@ namespace ctranslate2 {
(*_self_attention)(buffer2,
buffer2,
nullptr,
nullptr,
buffer1,
nullptr,
nullptr,
Expand Down

0 comments on commit 2d3dad5

Please sign in to comment.