Normalize shapes by reordering them by their permutation
| 76 | |
| 77 | /// Normalize shapes by reordering them by their permutation |
| 78 | std::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 |
no test coverage detected