Skip to content

Commit

Permalink
[js/node] gpuMemLimit as double then cast to u64
Browse files Browse the repository at this point in the history
  • Loading branch information
nomagick committed Jan 2, 2025
1 parent e03f545 commit 720abb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/node/src/session_options_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void ParseExecutionProviders(const Napi::Array epList, Ort::SessionOptions& sess
}
if (obj.Has("gpuMemLimit")) {
gpuMemLimit = static_cast<size_t>(
obj.Get("gpuMemLimit").As<Napi::Number>().Uint32Value());
obj.Get("gpuMemLimit").As<Napi::Number>().DoubleValue());
}
#endif
#ifdef USE_COREML
Expand Down

0 comments on commit 720abb3

Please sign in to comment.