RuntimeError: cuda runtime error (2) : out of memory at /pytorch/aten/src/THC/generic/THCStorage.cu:58


problem is at loss.backward(), but I cannot figure out what’s wrong with my code.