diff --git a/js/node/src/inference_session_wrap.cc b/js/node/src/inference_session_wrap.cc index 78f32ec09250b..f8aeadbe27c56 100644 --- a/js/node/src/inference_session_wrap.cc +++ b/js/node/src/inference_session_wrap.cc @@ -68,7 +68,7 @@ Napi::Value InferenceSessionWrap::LoadModel(const Napi::CallbackInfo &info) { int64_t bytesOffset = info[1].As().Int64Value(); int64_t bytesLength = info[2].As().Int64Value(); - ParseSessionOptions(info[1].As(), sessionOptions); + ParseSessionOptions(info[3].As(), sessionOptions); this->session_.reset( new Ort::Session(OrtEnv(), reinterpret_cast(buffer) + bytesOffset, bytesLength, sessionOptions)); } else {