Submission Error - #UNQ_C4

Getting this error during submission:
Cell #UNQ_C4. Can’t compile the student’s code. Error: RuntimeError(“Expected object of scalar type Float but got scalar type Long for sequence element 1 in sequence argument at position #1 ‘tensors’”,)

Therefore getting 0%, but I have passed all assignments.

Lab ID: erfndbwolwil

This is a problem that has come up before. The issue is that apparently the grader uses an older version of pytorch that is less forgiving in how torch.cat handles inputs of different types. Here’s an earlier thread on this. Please have a look and see if that is relevant to your case.

Also please note that the mentors do not have the superpower to look at anyone else’s notebooks directly. Only the course staff can do that. If we can’t help without seeing the code, then we have to rely on using DMs (Direct Messages) to share the code.