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

Method apply

test/eval_test.cpp:116–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 std::string name() const { return "invert_pass"; }
115
116 void apply(migraphx::module& m) const
117 {
118 for(auto ins : migraphx::iterator_for(m))
119 {
120 if(ins->name() == "sum")
121 {
122 m.replace_instruction(ins, minus_op{}, ins->inputs());
123 }
124 else if(ins->name() == "minus")
125 {
126 m.replace_instruction(ins, sum_op{}, ins->inputs());
127 }
128 }
129 }
130};
131
132struct invert_target

Callers 7

filter_dataFunction · 0.45
opt_poolingFunction · 0.45
TEST_CASEFunction · 0.45
make_descriptorFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45

Calls 4

iterator_forFunction · 0.85
replace_instructionMethod · 0.80
nameMethod · 0.45
inputsMethod · 0.45

Tested by

no test coverage detected