mirror of https://github.com/vladmandic/human
reduced bundle size
parent
c929c2d1d6
commit
07a794ba81
19
src/tf.js
19
src/tf.js
|
@ -1,18 +1,18 @@
|
||||||
// custom: bundle 3.4M
|
// from compileld sources: bundle 2.0M
|
||||||
/*
|
import * as tf from '@tensorflow/tfjs/dist/index.js';
|
||||||
import * as tf from '../../../dev-clone/tfjs/tfjs/dist/tf.esnext.js';
|
|
||||||
import { setWasmPaths } from '@tensorflow/tfjs-backend-wasm/dist/index.js';
|
import { setWasmPaths } from '@tensorflow/tfjs-backend-wasm/dist/index.js';
|
||||||
|
|
||||||
const loadGraphModel = tf.loadGraphModel;
|
const loadGraphModel = tf.loadGraphModel;
|
||||||
export { tf, setWasmPaths, loadGraphModel };
|
export { tf, setWasmPaths, loadGraphModel };
|
||||||
*/
|
|
||||||
|
|
||||||
// monolithic: bundle 3.4M
|
// from esm bundles: bundle 3.2M
|
||||||
|
/*
|
||||||
import * as tf from '@tensorflow/tfjs/dist/tf.es2017.js';
|
import * as tf from '@tensorflow/tfjs/dist/tf.es2017.js';
|
||||||
import { setWasmPaths } from '@tensorflow/tfjs-backend-wasm/dist/index.js';
|
import { setWasmPaths } from '@tensorflow/tfjs-backend-wasm/dist/index.js';
|
||||||
|
|
||||||
const loadGraphModel = tf.loadGraphModel;
|
const loadGraphModel = tf.loadGraphModel;
|
||||||
export { tf, setWasmPaths, loadGraphModel };
|
export { tf, setWasmPaths, loadGraphModel };
|
||||||
|
*/
|
||||||
|
|
||||||
// modular: bundle 4.2M
|
// modular: bundle 4.2M
|
||||||
/*
|
/*
|
||||||
|
@ -26,3 +26,12 @@ const version = { core: tf.version, cpu: tfCPU.version_cpu, webgl: tfWebGL.versi
|
||||||
|
|
||||||
export { tf, setWasmPaths, loadGraphModel, version };
|
export { tf, setWasmPaths, loadGraphModel, version };
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// custom: bundle 3.4M
|
||||||
|
/*
|
||||||
|
import * as tf from '../../../dev-clone/tfjs/tfjs/dist/index.js';
|
||||||
|
import { setWasmPaths } from '@tensorflow/tfjs-backend-wasm/dist/index.js';
|
||||||
|
|
||||||
|
const loadGraphModel = tf.loadGraphModel;
|
||||||
|
export { tf, setWasmPaths, loadGraphModel };
|
||||||
|
*/
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit 5dcbe8ad56fc4dc21378046c225185e6203250eb
|
Subproject commit 1cc1d9bf597c26a37f4e70c4895b1e956195c1b3
|
Loading…
Reference in New Issue