Hi! I don’t know what is happening to me…
I have this:
# YOUR CODE STARTS HERE
Z1 = tf.math.add(tf.linalg.matmul(W1,X), b1)
A1 = tf.keras.activations.relu(Z1)
Z2 = tf.math.add(tf.linalg.matmul(W2,A1), b2)
A2 = tf.keras.activations.relu(Z2)
Z3 = tf.math.add(tf.linalg.matmul(W3,A2), b3)
And I get this error:
AssertionError Traceback (most recent call last)
<ipython-input-26-cdfbf6341dd3> in <module>
18 print("\033[92mAll test passed")
19
---> 20 forward_propagation_test(forward_propagation, new_train)
<ipython-input-26-cdfbf6341dd3> in forward_propagation_test(target, examples)
4 forward_pass = target(tf.transpose(minibatch), parameters)
5 print(forward_pass)
----> 6 assert type(forward_pass) == EagerTensor, "Your output is not a tensor"
7 assert forward_pass.shape == (6, 2), "Last layer must use W3 and b3"
8 assert np.allclose(forward_pass,
AssertionError: Your output is not a tensor
I dont know why my Z3 is a EagerTensor.
please help