Skip to content

WeightNormalization data init fails with Keras experimental_run_tf_function #428

@seanpmorgan

Description

@seanpmorgan

Recent Keras change has made it so the data dependent initialization fails:

_SymbolicException: Inputs to eager execution function cannot be Keras symbolic tensors, but found [<tf.Tensor 'sequential_1/weight_normalization/mul:0'

I'm submitting a hotfix which flags the model compile with experimental_run_tf_function=False. Another issue I'm tracking is tensorflow/probability#519 to see how TFP resolves their issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglayers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions