reduced bundle size

pull/293/head
Vladimir Mandic 2020-11-12 12:17:57 -05:00
parent c929c2d1d6
commit 07a794ba81
2 changed files with 15 additions and 6 deletions

View File

@ -1,18 +1,18 @@
// custom: bundle 3.4M
/*
import * as tf from '../../../dev-clone/tfjs/tfjs/dist/tf.esnext.js';
// from compileld sources: bundle 2.0M
import * as tf from '@tensorflow/tfjs/dist/index.js';
import { setWasmPaths } from '@tensorflow/tfjs-backend-wasm/dist/index.js';
const loadGraphModel = tf.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 { setWasmPaths } from '@tensorflow/tfjs-backend-wasm/dist/index.js';
const loadGraphModel = tf.loadGraphModel;
export { tf, setWasmPaths, loadGraphModel };
*/
// 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 };
*/
// 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

@ -1 +1 @@
Subproject commit 5dcbe8ad56fc4dc21378046c225185e6203250eb
Subproject commit 1cc1d9bf597c26a37f4e70c4895b1e956195c1b3