Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi Ren committed Feb 13, 2025
1 parent 7ecf66e commit b4ec7e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/extra_outputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ void ExtraOutputs::Update() {

void ExtraOutputs::RegisterOutputs() {
for (size_t i = extra_outputs_start_; i < state_.output_names_.size(); ++i) {
auto managed_ortvalue = std::unique_ptr<OrtValue>(state_.outputs_[i]);
output_ortvalues_[state_.output_names_[i]] = managed_ortvalue;
state_.outputs_[i] = managed_ortvalue.get();
state_.outputs_[i] = (
output_ortvalues_[state_.output_names_[i]] = std::unique_ptr<OrtValue>(state_.outputs_[i])
).get();
}
}

Expand Down

0 comments on commit b4ec7e8

Please sign in to comment.