File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ Napi::Value InferenceSessionWrap::Run(const Napi::CallbackInfo& info) {
216216 Napi::Object result = Napi::Object::New (env);
217217
218218 for (size_t i = 0 ; i < outputIndex; i++) {
219- result.Set (outputNames_ [i], OrtValueToNapiValue (env, std::move (outputValues[i])));
219+ result.Set (outputNames_cstr [i], OrtValueToNapiValue (env, std::move (outputValues[i])));
220220 }
221221 return scope.Escape (result);
222222 } else {
@@ -244,7 +244,7 @@ Napi::Value InferenceSessionWrap::Run(const Napi::CallbackInfo& info) {
244244
245245 Napi::Object result = Napi::Object::New (env);
246246 for (size_t i = 0 ; i < outputIndex; i++) {
247- result.Set (outputNames_ [i], OrtValueToNapiValue (env, std::move (outputs[i])));
247+ result.Set (outputNames_cstr [i], OrtValueToNapiValue (env, std::move (outputs[i])));
248248 }
249249 return scope.Escape (result);
250250 }
You can’t perform that action at this time.
0 commit comments