diff --git a/js/node/src/session_options_helper.cc b/js/node/src/session_options_helper.cc index 548cc631a2cfb..36b357f1cfeeb 100644 --- a/js/node/src/session_options_helper.cc +++ b/js/node/src/session_options_helper.cc @@ -70,7 +70,7 @@ void ParseExecutionProviders(const Napi::Array epList, Ort::SessionOptions& sess } if (obj.Has("gpuMemLimit")) { gpuMemLimit = static_cast( - obj.Get("gpuMemLimit").As().Uint32Value()); + obj.Get("gpuMemLimit").As().DoubleValue()); } #endif #ifdef USE_COREML