Skip to content

Provided weight data has no target variable: batch_normalization #755

@rajeev-samalkha

Description

@rajeev-samalkha

To get help from the community, check out our Google group.

TensorFlow.js version

0.13

Browser version

Chrome Version 69.0.3497.100

Describe the problem or feature request

I converted a Keras model to tfjs using python utility with no errors. But when I try to load the model in tfjs, I get the following error:

[email protected]:2 Uncaught (in promise) Error: Provided weight data has no target variable: batch_normalization_1_2/gamma
    at new t ([email protected]:2)
    at loadWeightsFromNamedTensorMap ([email protected]:2)
    at t.loadWeights ([email protected]:2)
    at [email protected]:2
    at [email protected]:2
    at Object.next ([email protected]:2)
    at i ([email protected]:2)

Code to reproduce the bug / link to feature request

Running it on local machine.
model = await tf.loadModel(<path_to_model.json>)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions