Addons: WeightNormalization data init fails with Keras experimental_run_tf_function

Created on 19 Aug 2019  路  4Comments  路  Source: tensorflow/addons

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 https://github.com/tensorflow/probability/issues/519 to see how TFP resolves their issue.

bug layers

Most helpful comment

OK, Tzu-Wei, I'll take a try

All 4 comments

This is related to https://github.com/tensorflow/addons/pull/219. If switching back to .assign(), then it works. However, it won't converge.

Hi, is it still a problem? I think I have some time to look into it.

@facaiy Hi, it's still a problem. It would be great that you could take over it!

OK, Tzu-Wei, I'll take a try

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shun-lin picture shun-lin  路  4Comments

ConnorBarnhill picture ConnorBarnhill  路  3Comments

WindQAQ picture WindQAQ  路  4Comments

harshithere picture harshithere  路  4Comments

seanpmorgan picture seanpmorgan  路  4Comments