Have you found a good solution?
In pytorch_1.3, try:
p self.impl_->sizes() 
# such as 4-dims
p self.impl_->sizes().Data[0]
...
p self.impl_->sizes().Data[3]

to inspect data size, and
p self.impl_->storage().storage_impl_->numel()   # num of elements
p  ((float *)self.impl_->storage().storage_impl_->data())[0]  # the first element

to inspect value of tensor.