Hi,
Similar question has been asked and discussed previously in these forums. You can have a look here.

  
    
    
    How to cast a tensor to another type? 
  
  
    if I got a float tensor,but the model needs a double tensor.what should I do to cast the float tensor to double tensor?
  


Thanks