torch.Tensor.data_ptr Tensor.data_ptr() → int Returns the address of the first element of self tensor.