-
Notifications
You must be signed in to change notification settings - Fork 495
Open
Description
I want to run a keras model on a browser using keras.js , but keras.js predict is not working. while loading i got the following error
TypeError: layer.layer is undefined
here is the js code:
const model = new KerasJS.Model(
{
filepath: 'example.bin',
gpu : true,
filesystem : true
})
model.ready().then(() => model.predict(
{
input: new Float32Array(samples),
})) .then(({output}) =>
{
alert(output['output']);
})
.catch((error) =>
{
alert(error);
});
Metadata
Metadata
Assignees
Labels
No labels