The module parameters interacting with your input tensor should probably have the same type as the input tensor.
I think it would be easier to work with torch::kFloat tensor so you should convert your data to float before creating the input with from_blob