human/tfjs/tf-browser.ts

39 lines
1.4 KiB
TypeScript
Raw Normal View History

2021-05-25 14:58:20 +02:00
/**
* Creates tfjs bundle used by Human browser build target
2021-06-07 01:00:34 +02:00
* @external
2021-05-25 14:58:20 +02:00
*/
2021-08-12 00:59:02 +02:00
// export all from sources
2021-06-07 02:34:29 +02:00
// requires treeShaking:ignore-annotations due to tfjs misconfiguration
/*
2021-04-08 18:10:15 +02:00
export * from '@tensorflow/tfjs-core/src/index';
export * from '@tensorflow/tfjs-layers/src/index';
export * from '@tensorflow/tfjs-converter/src/index';
export * as data from '@tensorflow/tfjs-data/src/index';
export * from '@tensorflow/tfjs-backend-cpu/src/index';
export * from '@tensorflow/tfjs-backend-webgl/src/index';
export * from '@tensorflow/tfjs-backend-wasm/src/index';
*/
2021-09-15 04:07:13 +02:00
// export all from build individual packages
/*
export * from '@tensorflow/tfjs-core/dist/index.js';
export * from '@tensorflow/tfjs-layers/dist/index.js';
export * from '@tensorflow/tfjs-converter/dist/index.js';
export * as data from '@tensorflow/tfjs-data/dist/index.js';
export * from '@tensorflow/tfjs-backend-cpu/dist/index.js';
export * from '@tensorflow/tfjs-backend-webgl/dist/index.js';
export * from '@tensorflow/tfjs-backend-wasm/dist/index.js';
2021-09-15 04:07:13 +02:00
*/
// export all from build bundle
export * from '@tensorflow/tfjs/dist/index.js';
export * from '@tensorflow/tfjs-backend-webgl/dist/index.js';
export * from '@tensorflow/tfjs-backend-wasm/dist/index.js';
// add webgpu to bundle, experimental
export * from '@tensorflow/tfjs-backend-webgpu/dist/index.js';
2021-09-15 04:07:13 +02:00
// export versions, overrides version object from @tensorflow/tfjs
export { version } from '../dist/tfjs.version.js';