When I am computing the L2 distance between the encodings with the equation,
np.linalg.norm(db_enc - encoding), the second output of the 3rd test is becoming 0.0 for reasons I am not able to understand.
The output of my equation,
When I am computing the L2 distance between the encodings with the equation,
np.linalg.norm(db_enc - encoding), the second output of the 3rd test is becoming 0.0 for reasons I am not able to understand.
The output of my equation,
That’s not a problem. There are three tests for that function, and the “expected output” is for the second one.
I posted this topic because my auto grader says that there is something wrong with the function who_it_is so I though that might be the mistake
Did you run the cell in Section 4 that creates the “FRmodel”?
Subtracting tensors requires that you use the tf.math.subtract() function. Not the ‘-’ operator.