C3W1 assignment, test_compile_model()

When i run the unit-test case i get the error as shown in the above image,
In the error its saying to check the “from_logits” parameter, but i don’t think we need to set the “from_logits=True” since the last Dense layer of the model had a “tf.nn.log_softmax” activation so the output would be log-probabilities instead of logits.I don’t know why i am getting this error?

Hi @God_of_Calamity

Log_softmax returns logits


1 Like