Based on the error message it seems your model is using the default FloatTensors, while you are trying to pass DoubleTensors to its forward method.
Transform the model to double or the input tensors to float and it should work.