Based on the error message it seems that either the input or the model parameters are LongTensors.
You would have to make sure both are FloatTensors by calling s.float() or model.float() before executing the forward pass.