ranking
ranking copied to clipboard
passing parameters into Dense Layer instead of into tf.keras.Sequential.add
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.