Skip to content

Commit f8cf9a3

Browse files
committed
[js/node] gpuMemLimit only useful to be bigint
1 parent e03f545 commit f8cf9a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/common/lib/inference-session.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export declare namespace InferenceSession {
223223
export interface CudaExecutionProviderOption extends ExecutionProviderOption {
224224
readonly name: 'cuda';
225225
deviceId?: number;
226-
gpuMemLimit?: number;
226+
gpuMemLimit?: bigint;
227227

228228
/**
229229
* Arena extend strategy. See

js/node/src/session_options_helper.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void ParseExecutionProviders(const Napi::Array epList, Ort::SessionOptions& sess
7070
}
7171
if (obj.Has("gpuMemLimit")) {
7272
gpuMemLimit = static_cast<size_t>(
73-
obj.Get("gpuMemLimit").As<Napi::Number>().Uint32Value());
73+
obj.Get("gpuMemLimit").As<Napi::BigInt>().Uint64Value());
7474
}
7575
#endif
7676
#ifdef USE_COREML

0 commit comments

Comments
 (0)