From 82ec022a7f32c0c3cf52720e8d80b3d60a176285 Mon Sep 17 00:00:00 2001 From: Leon Chen Date: Tue, 2 Jan 2018 14:02:39 -0500 Subject: [PATCH] add default export --- package.json | 2 +- src/index.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e2c7b56f..b6dbae1a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "keras-js", - "version": "1.0.0", + "version": "1.0.1", "description": "Run Keras models in the browser, with GPU support using WebGL", "main": "lib/index.js", "unpkg": "dist/keras.min.js", diff --git a/src/index.js b/src/index.js index 92c4f8db..2a3c8d20 100644 --- a/src/index.js +++ b/src/index.js @@ -9,3 +9,6 @@ import * as testUtils from './utils/testUtils' const GPU_SUPPORT = webgl2.isSupported export { Model, Tensor, GPU_SUPPORT, activations, layers, testUtils } + +const KerasJS = { Model, Tensor, GPU_SUPPORT, activations, layers, testUtils } +export { KerasJS as default }