title: Get the data type of a PyTorch tensor
body: <p>I understand that PyTorch tensors are homogenous, ie, each of the elements are of the same type.</p>
  
  <p>How do I find out the type of the elements in a PyTorch tensor?</p>