Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept variable-length batch prompts for Whisper #1457

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Remove const for attribute
  • Loading branch information
guillaumekln committed Jul 28, 2023
commit a954445979b6cf5359bb6a45cf18906fe2d32f7b
2 changes: 1 addition & 1 deletion include/ctranslate2/layers/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace ctranslate2 {
protected:
virtual const StorageView& get_position_encoding(dim_t max_time) = 0;
private:
const ops::PositionEncodingsAdd _add_op;
ops::PositionEncodingsAdd _add_op;
};

// Concrete position encoder loading encoding vectors from the model.
Expand Down