Skip to content

Commit

Permalink
[hotfix] fix session option access in Node.js binding
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire authored and snnn committed Oct 2, 2023
1 parent 72c0280 commit 8c52755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/node/src/inference_session_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Napi::Value InferenceSessionWrap::LoadModel(const Napi::CallbackInfo &info) {
int64_t bytesOffset = info[1].As<Napi::Number>().Int64Value();
int64_t bytesLength = info[2].As<Napi::Number>().Int64Value();

ParseSessionOptions(info[1].As<Napi::Object>(), sessionOptions);
ParseSessionOptions(info[3].As<Napi::Object>(), sessionOptions);
this->session_.reset(
new Ort::Session(OrtEnv(), reinterpret_cast<char *>(buffer) + bytesOffset, bytesLength, sessionOptions));
} else {
Expand Down

0 comments on commit 8c52755

Please sign in to comment.