again i got in trouble with the grader. The notebook basically works fine. Results are good. Every cell test was passed but i got this 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’”,)
I’m pretty sure that the problem comes with the constraint that combined must be float.
My solution here was to add a .type after the concat. (hard to describe without pasting that line of code)
Can someone give me a hint what i’m doing wrong here?
I had the same issue today. I changed it to float on input variables x and y instead of after concat but got a diff error now. Been trying to debug but can’t figure it out.
That’s what I thought – about the huge ouput. I tried to re-run couple times but still got same error. I’ll try to clear output and save before submit to see if it will pass.
That’s great news. The key point is what I mentioned above: the grader does not need to see your output. It only needs to call your functions. So even if the output does not confuse the grader as in your case, it’s still faster to submit the “Clear” notebook. Minimal data equals better performance.