Hi,
I am having an assertion error in function get_disc_loss.
I have followed all the steps as described in the notebook. The error snippet is as follows:
AssertionError Traceback (most recent call last)
Input In [17], in <cell line: 73>()
70 if num_steps >= max_tests:
71 break
—> 73 test_disc_reasonable()
74 test_disc_loss()
75 print(“Success!”)
Input In [17], in test_disc_reasonable(num_images)
12 real = torch.ones(num_images, z_dim)
13 disc_loss = get_disc_loss(gen, disc, criterion, real, num_images, z_dim, ‘cpu’)
—> 14 assert torch.all(torch.abs(disc_loss.mean() - 0.5) < 1e-5)
16 gen = torch.ones_like
17 criterion = torch.mul # Multiply
AssertionError:
Unfortunately, there’s not much information to diagnose this. I’ve also tried refreshing the notebook as suggested in Assertion error in get_disc_loss C1W1 - #6 by Hitarth_Bhatt , but no luck
I have passed the tests for 1-5 and 7th function but only for the 6th function, I have received this error causing me to fail the submission,.