torch.Tensor.storage_offset
- Tensor.storage_offset() → int
Returns
selftensor’s offset in the underlying storage in terms of number of storage elements (not bytes).Example:
>>> x
Returns self tensor’s offset in the underlying storage in terms of
number of storage elements (not bytes).
Example:
>>> x