chore: update node_modules with new binary files and dependencies
- Add new binary files for nodemon, onnxruntime-web, and xenova/transformers - Update various JavaScript and TypeScript files in node_modules - Remove unused files and dependencies - Add new test fixtures and documentation files
This commit is contained in:
21
node_modules/onnxruntime-web/lib/index.ts
generated
vendored
Normal file
21
node_modules/onnxruntime-web/lib/index.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports */
|
||||
// We use "require" instead of "import" here because import statement must be put in top level. Our current code does
|
||||
// not allow terser to tree-shaking code as expected because some codes are treated as having side effects.
|
||||
// So we import code inside the if-clause to allow terser remove the code safely.
|
||||
|
||||
export * from 'onnxruntime-common';
|
||||
import {registerBackend} from 'onnxruntime-common';
|
||||
|
||||
if (!BUILD_DEFS.DISABLE_WEBGL) {
|
||||
const onnxjsBackend = require('./backend-onnxjs').onnxjsBackend;
|
||||
registerBackend('webgl', onnxjsBackend, -10);
|
||||
}
|
||||
if (!BUILD_DEFS.DISABLE_WASM) {
|
||||
const wasmBackend = require('./backend-wasm').wasmBackend;
|
||||
registerBackend('cpu', wasmBackend, 10);
|
||||
registerBackend('wasm', wasmBackend, 10);
|
||||
registerBackend('xnnpack', wasmBackend, 9);
|
||||
}
|
||||
Reference in New Issue
Block a user