SetStride
Function Usage
Sets the step value of a specified idx axis.
Prototype
1 | void SetStride(size_t idx, const int64_t stride) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
idx |
Input |
Dimension index. You must ensure that the index is valid. |
stride |
Input |
Step value set for the idx axis. |
Returns
None
Constraints
You must ensure that the index is valid.
Examples
1 2 | Stride stride0({3, 256, 256}); stride0.SetStride(0U, 1); // 1,256,256 |
Parent topic: Stride