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

Function get_reduce_size

src/split_reduce.cpp:169–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169static std::size_t get_reduce_size(const_module_ref rm)
170{
171 auto ins = std::find_if(rm->begin(), rm->end(), &is_reduce);
172 assert(ins != rm->end());
173 return ins->inputs().front()->get_shape().elements() / ins->get_shape().elements();
174}
175
176void split_reduce::apply(module_pass_manager& mpm) const
177{

Callers 1

applyMethod · 0.85

Calls 7

frontMethod · 0.80
find_ifFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
elementsMethod · 0.45
get_shapeMethod · 0.45
inputsMethod · 0.45

Tested by

no test coverage detected