Skip to content

Commit

Permalink
Code scanning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanUnderhill committed Feb 27, 2024
1 parent 04c0206 commit fdd2d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/logits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Generators {
Logits::Logits(const Model& model, State& state)
: model_{model},
state_{state},
shape_{state_.search_params_.batch_size * state_.search_params_.num_beams, state_.search_params_.sequence_length, state_.search_params_.vocab_size},
shape_{static_cast<int64_t>(state_.search_params_.batch_size) * state_.search_params_.num_beams, state_.search_params_.sequence_length, state_.search_params_.vocab_size},
type_{model_.session_info_->GetOutputDataType(model_.config_->model.decoder.outputs.logits)} {
value_ = OrtValue::CreateTensor(*model.allocator_device_, shape_, type_);

Expand Down

0 comments on commit fdd2d05

Please sign in to comment.