I thought the error stated that it was expecting a LongTensor instead of a FloatTensor. I put .float() to the corresponding place and the error disappeared.
Why is this error message indicating it is actually expecting a FlaotTensor?
Thanks!