mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
### Description - Support more test cases for WebNN EP in suite-test-list.jsonc - Add DISABLE_WEBNN flag in build.ts as preparing for WebNN EP release - Add test option: '--webnn-device-type' in test-runner-args-cli.ts to support running WebNN 'gpu' deviceType - Use Chrome Stable as default browser for WebNN testing to unblock the CI limitation.
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
|
|
/**
|
|
* The interface BuildDefinitions contains a set of flags which are defined at build time.
|
|
*
|
|
* Those flags are processed in bundler for tree shaking to remove unused code.
|
|
* No flags in this file should present in production build.
|
|
*/
|
|
interface BuildDefinitions {
|
|
/**
|
|
* defines whether to disable the whole WebGL backend in the build.
|
|
*/
|
|
readonly DISABLE_WEBGL: boolean;
|
|
/**
|
|
* defines whether to disable the whole WebGpu backend in the build.
|
|
*/
|
|
readonly DISABLE_WEBGPU: boolean;
|
|
/**
|
|
* defines whether to disable the whole WebNN backend in the build.
|
|
*/
|
|
readonly DISABLE_WEBNN: boolean;
|
|
/**
|
|
* defines whether to disable the whole WebAssembly backend in the build.
|
|
*/
|
|
readonly DISABLE_WASM: boolean;
|
|
/**
|
|
* defines whether to disable proxy feature in WebAssembly backend in the build.
|
|
*/
|
|
readonly DISABLE_WASM_PROXY: boolean;
|
|
/**
|
|
* defines whether to disable multi-threading feature in WebAssembly backend in the build.
|
|
*/
|
|
readonly DISABLE_WASM_THREAD: boolean;
|
|
/**
|
|
* defines whether to disable training APIs in WebAssembly backend.
|
|
*/
|
|
readonly DISABLE_TRAINING: boolean;
|
|
}
|
|
|
|
declare const BUILD_DEFS: BuildDefinitions;
|