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

Function reverse_module

test/module_test.cpp:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68static 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
79static migraphx::program create_program()
80{

Callers 1

TEST_CASEFunction · 0.85

Calls 6

iotaFunction · 0.85
reverseFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected