pub fn to_dtype(tensor: &Tensor, dtype: Kind) -> Result<Tensor>
Helper for converting to dtype with proper arguments