| 32 | inline namespace MIGRAPHX_INLINE_NS { |
| 33 | |
| 34 | shape reorder_shape(const shape& s, const std::vector<int64_t>& permutation) |
| 35 | { |
| 36 | return {s.type(), reorder_dims(s.lens(), permutation), reorder_dims(s.strides(), permutation)}; |
| 37 | } |
| 38 | |
| 39 | std::vector<int64_t> invert_permutation(const std::vector<int64_t>& permutation) |
| 40 | { |