Like many others I have also got this error-
Can someone suggest a final solution for this -
I tried all possible suggestions mentioned in all discussions but nothing seems to be working.
AssertionError Traceback (most recent call last)
in
5 print(J1)
6 assert type(J1) == EagerTensor, f"Wrong type {type(J1)} != {EagerTensor}"
----> 7 assert np.isclose(J1, 10221.168), f"Unexpected cost for epoch 0: {J1} != {10221.168}"
8
9 J2 = train_step(generated_image)
AssertionError: Unexpected cost for epoch 0: 2555.3056640625 != 10221.168
It’s difficult to say what could be the issue on the basis of what you are reporting here. Could you for starters send me your code for train_step in a direct mail? Then I can have a look.
I had a DM conversation with Prahlad about this already and the problem is solved. It was just an incorrect implementation of one of the function invocations in train_step.
Notice that your cost value is negative. How could that happen? The costs are positive by definition. You might want to have a look at this thread for an example of one type of mistake that can cause negative cost values.