Skip to content

TypeError: layer.layer is undefined #138

@hmhwe

Description

@hmhwe

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions