stride

TensorInfo.stride()

Retrieves the stride of the tensor associated with the current TensorInfo object. The stride represents the number of bytes to be skipped in memory to move from one element to another along each dimension.

Returns:

stride -- The stride of the tensor.

Return type:

tuple of int