Skip to content

Commit

Permalink
Adapt to the changes of gcpp::ImageTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ufownl committed Nov 5, 2024
1 parent 4ca1ef6 commit ae2fd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ session::session(instance* inst, int argc, char* argv[])
}
const auto& cfg = inst->model().GetModelConfig();
if (cfg.vit_seq_len > 0) {
img_ = gcpp::ImageTokens(cfg.vit_seq_len, cfg.model_dim);
img_ = gcpp::ImageTokens(gcpp::Extents2D(cfg.vit_seq_len, cfg.model_dim));
}
kv_cache_ = gcpp::KVCache::Create(cfg, args_.prefill_tbatch_size);
}
Expand Down

0 comments on commit ae2fd2f

Please sign in to comment.