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

Function normalize_permutation

src/permutation.cpp:78–86  ·  view source on GitHub ↗

Normalize shapes by reordering them by their permutation

Source from the content-addressed store, hash-verified

76
77/// Normalize shapes by reordering them by their permutation
78std::vector<shape> normalize_permutation(const std::vector<shape>& shapes)
79{
80 auto result = shapes;
81 auto perm = find_permutation(shapes);
82 std::transform(result.begin(), result.end(), result.begin(), [&](auto s) {
83 return reorder_shape(s, perm);
84 });
85 return result;
86}
87
88} // namespace MIGRAPHX_INLINE_NS
89} // namespace migraphx

Callers 8

normalizeMethod · 0.85
compile_opMethod · 0.85
compile_opMethod · 0.85
compile_opMethod · 0.85
split_reduceFunction · 0.85
compile_opMethod · 0.85
compile_opMethod · 0.85
compile_opMethod · 0.85

Calls 5

find_permutationFunction · 0.70
reorder_shapeFunction · 0.70
transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected