Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Conversation

zhduan
Copy link

@zhduan zhduan commented Jun 24, 2021

In create_tower function, the dictionary parameters should be passed into tf.keras.layers.Dense instead of into tf.keras.Sequential.add function. The only parameter tf.keras.Sequential.add takes is a LayerObject. The current code would result error like

TypeError: add() got an unexpected keyword argument 'kernel_regularizer'

when a key value pair like "kernel_regularizer": tf.keras.regularizers.l2 is passed.

@google-cla google-cla bot added the cla: yes label Jun 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant