diff --git a/demo/browser.js b/demo/browser.js index 1e24908d..1228728f 100644 --- a/demo/browser.js +++ b/demo/browser.js @@ -62,17 +62,17 @@ function str(...msg) { } // helper function: wrapper around console output -const log = (...msg) => { +function log(...msg) { const dt = new Date(); const ts = `${dt.getHours().toString().padStart(2, '0')}:${dt.getMinutes().toString().padStart(2, '0')}:${dt.getSeconds().toString().padStart(2, '0')}.${dt.getMilliseconds().toString().padStart(3, '0')}`; // eslint-disable-next-line no-console if (ui.console) console.log(ts, ...msg); -}; +} -const status = (msg) => { +function status(msg) { // eslint-disable-next-line no-console document.getElementById('status').innerText = msg; -}; +} let original; async function calcSimmilariry(result) { diff --git a/package.json b/package.json index d943d5c1..34536a85 100644 --- a/package.json +++ b/package.json @@ -32,10 +32,10 @@ "@tensorflow/tfjs-layers": "^2.7.0", "@tensorflow/tfjs-node": "^2.7.0", "@tensorflow/tfjs-node-gpu": "^2.7.0", - "@vladmandic/pilogger": "^0.2.7", + "@vladmandic/pilogger": "^0.2.9", "chokidar": "^3.4.3", "dayjs": "^1.9.6", - "esbuild": "^0.8.12", + "esbuild": "^0.8.15", "eslint": "^7.14.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-plugin-import": "^2.22.1", diff --git a/src/tfjs/tf-browser.js b/src/tfjs/tf-browser.js index 0eda0669..b3672ce3 100644 --- a/src/tfjs/tf-browser.js +++ b/src/tfjs/tf-browser.js @@ -4,7 +4,7 @@ // { modules: 1061, moduleBytes: 3772720, outputBytes: 1531035 } export * from '@tensorflow/tfjs/dist/index.js'; -export * from '@tensorflow/tfjs-backend-wasm/dist/index.js'; +export * from '@tensorflow/tfjs-backend-wasm'; // modular // { modules: 1064, moduleBytes: 3793219, outputBytes: 1535600 }