Course 2 Week 3 Programming Assignment model function

FYI: I had to modify the code for “model”, which doesn’t contain any instructions to do so, by inserting the two tf.squeeze calls in the line below:

minibatch_cost = compute_cost(tf.squeeze(Z3), tf.squeeze(minibatch_Y))

This yielded the expected result. The lab should probably be changed or some other clarification added.

Hi, @michael.brent

There should be no need to change code outside the # YOUR CODE STARTS HERE...# YOUR CODE ENDS HERE blocks.

Double check the dimensions of the tensor returned by compute_cost.