Here is the link 2 and sample usage I guess:
auto my_float_tensor = at::_cast_Float(my_long_tensor);
the underscore naming of the function rises a question whether this function also changes the data type of the my_long_tensor (like in-place notation) but the input tensor is const so it can not.
The c++ api documentation needs a lot, I believe.