Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passing parameters into Dense Layer instead of into tf.keras.Sequential.add #272

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant