| 66 | } |
| 67 | |
| 68 | static void reverse_module(migraphx::module& m) |
| 69 | { |
| 70 | if(m.size() < 2) |
| 71 | return; |
| 72 | std::vector<std::size_t> permutation(m.size() - 1); |
| 73 | std::iota(permutation.begin(), permutation.end(), 0); |
| 74 | std::reverse(permutation.begin(), permutation.end()); |
| 75 | permutation.push_back(permutation.size()); |
| 76 | m.shuffle(permutation); |
| 77 | } |
| 78 | |
| 79 | static migraphx::program create_program() |
| 80 | { |