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

Function group_find

src/include/migraphx/algorithm.hpp:131–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130template <class Iterator, class Predicate, class Output>
131void group_find(Iterator start, Iterator last, Predicate pred, Output out)
132{
133 start = std::find_if(start, last, pred);
134 while(start != last)
135 {
136 auto it = std::find_if_not(start, last, pred);
137 out(start, it);
138 start = std::find_if(it, last, pred);
139 }
140}
141
142/// Similiar to std::remove_if but instead pass adjacent pairs to the predicate
143template <class Iterator, class Predicate>

Callers 3

swap_closer_axesMethod · 0.85
find_broadcasted_dimsFunction · 0.85
attach_empty_axisFunction · 0.85

Calls 1

find_ifFunction · 0.70

Tested by

no test coverage detected