Overview
The stride structure is used to describe the step of a tensor and contains the following information:
1 2 | size_t dim_num_; int64_t strides_[kMaxDimNum]; |
dim_num_ indicates the number of dimensions of the stride. It is the same as the number of dimensions of the tensor. strides_array indicates the step of each dimension of the tensor.
1 | size_t kMaxDimNum = 25; |
kMaxDimNum indicates the maximum number of dimensions supported. (This value is the maximum supported specification. The actual supported specification depends on the actual operator.)
This API is reserved for future use and not supported in the current version.
Header File to Be Included
1 | #include <stride.h> |
Parent topic: Stride