Skip to content

Commit 560ebcd

Browse files
committed
fix(onnx): use correct checkpoint function name
Fix ONNX Runtime build script to use getCheckpointData instead of readCheckpoint. The function was renamed in checkpoint-manager.
1 parent 2e9535c commit 560ebcd

File tree

1 file changed

+2
-2
lines changed
  • packages/onnx-runtime-builder/scripts

1 file changed

+2
-2
lines changed

packages/onnx-runtime-builder/scripts/build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ async function verify() {
281281
printHeader('Verifying WASM')
282282

283283
// Get WASM file location from optimize checkpoint.
284-
const { readCheckpoint } = await import('@socketsecurity/build-infra/lib/checkpoint-manager')
285-
const checkpoint = await readCheckpoint('onnx-runtime', 'optimized')
284+
const { getCheckpointData } = await import('@socketsecurity/build-infra/lib/checkpoint-manager')
285+
const checkpoint = await getCheckpointData('onnx-runtime', 'optimized')
286286
const wasmFile = checkpoint?.wasmFile || path.join(BUILD_DIR, 'MinSizeRel', 'onnxruntime-web.wasm')
287287

288288
if (!existsSync(wasmFile)) {

0 commit comments

Comments
 (0)