Based on the error messages it seems that feats is a list, while you are trying to use it as a tensor.
You could thus make sure that the forward method of your model returns a tensor or convert the list to a tensor using e.g. torch.stack.