I also have a problem with computing cost as I got the same error every time ‘’
I went through the discussion (Cannot compute_cost course 2 week 3 - #9 by Damon)
The error I got:
AssertionError: Test does not match. Did you get the mean of your cost functions?
cost I have written:
cost = tf.reduce_mean(tf.keras.losses.binary_crossentropy(tf.transpose(labels), tf.transpose(logits), from_logits=False))