-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
I'm new to tensorflow.js, I've used the Python version before and now I'm converting my previously trained models to web.
I followed a CodeLabs tutorial, where I got this code:
const MODEL_URL = "../model/model.json"
async function run() {
// Load the model from the CDN.
const model = await tf.loadLayersModel(MODEL_URL, strict=false);
// Print out the architecture of the loaded model.
// This is useful to see that it matches what we built in Python.
console.log(model.summary());
But I keep getting this error:
Uncaught (in promise) TypeError: e.forEach is not a function
at bg (util_base.js:681)
at Mw (tensor_ops_util.js:44)
at Lw (tensor.js:56)
at Ww (io_utils.js:225)
at RM (models.js:334)
at models.js:316
at c (runtime.js:63)
at Generator._invoke (runtime.js:293)
at Generator.next (runtime.js:118)
at bv (runtime.js:747)
Can you tell me what's wrong here? Is it a problem with my converted model or could it be some bug?