Week 4: Grader Not Working for Conditional GAN Lab


Although the notebook passes all tests, i am getting this compilation error from the grader:
Cell #7. Can’t compile the student’s code. Error: RuntimeError(“Expected object of scalar type Long but got scalar type Float for sequence element 1 in sequence argument at position #1 ‘tensors’”,)

Please advise on what could be the problem

Found the bug. Seems like the unit test could be fooled.

1 Like

Yes, this problem comes up pretty frequently. Here’s another instance from just yesterday.

I encountered the same issue today,

1 Like