onnxruntime

Форк
0
/
build-def.d.ts 
56 строк · 1.5 Кб
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the MIT License.
3

4
/* eslint-disable @typescript-eslint/naming-convention */
5

6
/**
7
 * The interface BuildDefinitions contains a set of flags which are defined at build time.
8
 *
9
 * Those flags are processed in bundler for tree shaking to remove unused code.
10
 * No flags in this file should present in production build.
11
 */
12
interface BuildDefinitions {
13
  // #region Build definitions for Tree Shaking
14

15
  /**
16
   * defines whether to disable the whole WebGL backend in the build.
17
   */
18
  readonly DISABLE_WEBGL: boolean;
19
  /**
20
   * defines whether to disable the whole WebGpu/WebNN backend in the build.
21
   */
22
  readonly DISABLE_JSEP: boolean;
23
  /**
24
   * defines whether to disable the whole WebNN backend in the build.
25
   */
26
  readonly DISABLE_WASM: boolean;
27
  /**
28
   * defines whether to disable proxy feature in WebAssembly backend in the build.
29
   */
30
  readonly DISABLE_WASM_PROXY: boolean;
31
  /**
32
   * defines whether to disable training APIs in WebAssembly backend.
33
   */
34
  readonly DISABLE_TRAINING: boolean;
35
  /**
36
   * defines whether to disable dynamic importing WASM module in the build.
37
   */
38
  readonly DISABLE_DYNAMIC_IMPORT: boolean;
39

40
  // #endregion
41

42
  // #region Build definitions for ESM
43

44
  /**
45
   * defines whether the build is ESM.
46
   */
47
  readonly IS_ESM: boolean;
48
  /**
49
   * placeholder for the import.meta.url in ESM. in CJS, this is undefined.
50
   */
51
  readonly ESM_IMPORT_META_URL: string|undefined;
52

53
  // #endregion
54
}
55

56
declare const BUILD_DEFS: BuildDefinitions;
57

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.