From 0f790f971ddcc20190d6e2512273a24c7e354fb2 Mon Sep 17 00:00:00 2001 From: Kevin Mader Date: Tue, 6 Feb 2018 18:09:40 +0100 Subject: [PATCH] Update Model.js add more detail to weight loading errors to help debugging loading [issues](https://github.com/transcranial/keras-js/issues/60) --- src/Model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model.js b/src/Model.js index 9cfb585d..f135b7df 100644 --- a/src/Model.js +++ b/src/Model.js @@ -395,7 +395,7 @@ export default class Model { }) if (!weightDef) { - throw new Error(`[Model] error loading weights.`) + throw new Error(`[Model] error loading weights `+weightNames+`for `+layerClass) } const { data, shape, type } = weightDef