It seems you are trying to pass a numpy array to your model, while you should use PyTorch tensors.
You could check it via:
print(type(input))

before feeding input to your model.
To transform the numpy array to a tensor use input = torch.from_numpy(input).