MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / find_permutation

Function find_permutation

src/shape_transform_descriptor.cpp:1591–1597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1589}
1590
1591static std::vector<int64_t> find_permutation(const std::vector<dimension::sub>& subs)
1592{
1593 auto compare_sub = [](auto f) {
1594 return by(f, [](const dimension::sub& s) -> const auto& { return s.axis; });
1595 };
1596 return sort_permutation(subs, compare_sub(std::less<>{}));
1597}
1598
1599// This will generate the operators to apply the shape transformation that is
1600// represented by this class. This is the order of operators that will be

Callers 2

generateMethod · 0.70

Calls 2

sort_permutationFunction · 0.85
byFunction · 0.50

Tested by

no test coverage detected