| 54 | } |
| 55 | |
| 56 | static void shuffle_module(migraphx::module& m) |
| 57 | { |
| 58 | if(m.size() < 2) |
| 59 | return; |
| 60 | std::vector<std::size_t> permutation(m.size() - 1); |
| 61 | std::iota(permutation.begin(), permutation.end(), 0); |
| 62 | std::mt19937 g(permutation.size()); |
| 63 | std::shuffle(permutation.begin(), permutation.end(), g); |
| 64 | permutation.push_back(permutation.size()); |
| 65 | m.shuffle(permutation); |
| 66 | } |
| 67 | |
| 68 | static void reverse_module(migraphx::module& m) |
| 69 | { |