fashion_model.compile(
    loss = keras.losses.categorical_crossentropy,
    optimizer = tf.keras.optimizers.Adam(),
    metrics = ['accuracy']
)
When I execute this line of code I am facing the error
module 'tensorflow' has no attribute 'log'
and my tensorflow version is 2.0
substitute tf.math.log for tf.log in tf 2.0. 
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With