@@ -77,7 +77,7 @@ Napi::Value InferenceSessionWrap::LoadModel(const Napi::CallbackInfo& info) {
7777 Napi::String value = info[0 ].As <Napi::String>();
7878
7979 ParseSessionOptions (info[1 ].As <Napi::Object>(), sessionOptions);
80- this ->session_ .reset (new Ort::Session (* OrtSingletonData::Env (),
80+ this ->session_ .reset (new Ort::Session (OrtSingletonData::Env (),
8181#ifdef _WIN32
8282 reinterpret_cast <const wchar_t *>(value.Utf16Value ().c_str ()),
8383#else
@@ -92,7 +92,7 @@ Napi::Value InferenceSessionWrap::LoadModel(const Napi::CallbackInfo& info) {
9292 int64_t bytesLength = info[2 ].As <Napi::Number>().Int64Value ();
9393
9494 ParseSessionOptions (info[3 ].As <Napi::Object>(), sessionOptions);
95- this ->session_ .reset (new Ort::Session (* OrtSingletonData::Env (),
95+ this ->session_ .reset (new Ort::Session (OrtSingletonData::Env (),
9696 reinterpret_cast <char *>(buffer) + bytesOffset, bytesLength,
9797 sessionOptions));
9898 } else {
@@ -212,7 +212,7 @@ Napi::Value InferenceSessionWrap::Run(const Napi::CallbackInfo& info) {
212212 ParseRunOptions (info[2 ].As <Napi::Object>(), runOptions);
213213 }
214214 if (preferredOutputLocations_.size () == 0 ) {
215- session_->Run (runOptions == nullptr ? * OrtSingletonData::DefaultRunOptions () : runOptions,
215+ session_->Run (runOptions == nullptr ? OrtSingletonData::DefaultRunOptions () : runOptions,
216216 inputIndex == 0 ? nullptr : &inputNames_cstr[0 ], inputIndex == 0 ? nullptr : &inputValues[0 ],
217217 inputIndex, outputIndex == 0 ? nullptr : &outputNames_cstr[0 ],
218218 outputIndex == 0 ? nullptr : &outputValues[0 ], outputIndex);
@@ -241,7 +241,7 @@ Napi::Value InferenceSessionWrap::Run(const Napi::CallbackInfo& info) {
241241 }
242242 }
243243
244- session_->Run (runOptions == nullptr ? * OrtSingletonData::DefaultRunOptions () : runOptions, *ioBinding_);
244+ session_->Run (runOptions == nullptr ? OrtSingletonData::DefaultRunOptions () : runOptions, *ioBinding_);
245245
246246 auto outputs = ioBinding_->GetOutputValues ();
247247 ORT_NAPI_THROW_ERROR_IF (outputs.size () != outputIndex, env, " Output count mismatch." );
0 commit comments