MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / permute_strides

Function permute_strides

arm_compute/core/Utils.h:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 */
72template <typename T>
73inline void permute_strides(Dimensions<T> &dimensions, const PermutationVector &perm)
74{
75 const auto old_dim = utility::make_array<Dimensions<T>::num_max_dimensions>(dimensions.begin(), dimensions.end());
76 for (unsigned int i = 0; i < perm.num_dimensions(); ++i)
77 {
78 T dimension_val = old_dim[i];
79 dimensions.set(perm[i], dimension_val);
80 }
81}
82
83/** Calculate padding requirements in case of SAME padding
84 *

Callers 2

run_permuteMethod · 0.85
run_permuteFunction · 0.85

Calls 4

beginMethod · 0.45
endMethod · 0.45
num_dimensionsMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected