GetViewStrides
Function Usage
Obtains the ViewStrides of an aclTensor.
Prototype
FVector<int64_t> GetViewStrides()
Parameters
None
Returns
A FVector object, which stores the stride of each dimension of the aclTensor.
Constraints
None
Example
1 2 3 4 5 6 7 | // Obtain the view stride of the input and print the stride of each dimension in sequence. void Func(const aclTensor *input) { auto strides = input->GetViewStrides(); for (int64_t stride : strides) { std::cout << stride << std::endl; } } |
Parent topic: common_types