Numpy does not implement GPU support, so all your numpy operations have to use numpy arrays, which are stored on the CPU.
As the error message points out, input.numpy() won’t work, if input is a CUDATensor, so you would have to move it to the CPU before.