Skip to content

Commit

Permalink
clear fetch before emplace
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyShuai committed May 11, 2023
1 parent e0dcb22 commit 866db7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onnxruntime/core/framework/cloud_invoker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ onnxruntime::Status OpenAIInvoker::Send(const CloudEndPointConfig& run_options,
auto* output_string = output_tensor->MutableData<std::string>();
*output_string = string_buffer.ss_.str();
auto tensor_type = DataTypeImpl::GetType<Tensor>();
ort_outputs.clear();
ort_outputs.emplace_back(output_tensor.release(), tensor_type, tensor_type->GetDeleteFunc());
return Status::OK();
}
Expand Down

0 comments on commit 866db7e

Please sign in to comment.