DLS Cousre 2, week 4: compute_cost_test

Hi everyone, I have a problem, Please help me to solve this problem,
{moderator edit - solution code removed}

There are several things wrong here:

You have the meaning of labels and logits reversed.

Also note the comments that tell you what the required dimensions of the inputs need to be. You need to transpose both the logits and labels. Also note that by default, the loss function assumes that the inputs are not logits but actual activation output values. This thread provides some more information on that point.