Exception when adding tensors

I managed to solve it here, thanks! The problem was one of the tensors was allocated at CUDA.