Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions onnxruntime/hosting/executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace hosting {

class Executor {
public:
Executor(std::shared_ptr<HostingEnvironment> hosting_env, std::string request_id) : env_(hosting_env),
Executor(HostingEnvironment* hosting_env, std::string request_id) : env_(hosting_env),
request_id_(std::move(request_id)),
using_raw_data_(true) {}

Expand All @@ -24,7 +24,7 @@ class Executor {
/* out */ onnxruntime::hosting::PredictResponse& response);

private:
std::shared_ptr<HostingEnvironment> env_;
HostingEnvironment* env_;
const std::string request_id_;
bool using_raw_data_;

Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/hosting/http/predict_request_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void Predict(const std::string& name,

// Run Prediction
protobufutil::Status status;
Executor executor(env, context.request_id);
Executor executor(env.get(), context.request_id);
PredictResponse predict_response{};
status = executor.Predict(name, version, predict_request, predict_response);
if (!status.ok()) {
Expand Down