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

Function transform_if

src/include/migraphx/algorithm.hpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38template <class Iterator, class Output, class Predicate, class F>
39void transform_if(Iterator start, Iterator last, Output out, Predicate pred, F f)
40{
41 while(start != last)
42 {
43 if(pred(*start))
44 {
45 *out = f(*start);
46 ++out;
47 }
48 ++start;
49 }
50}
51
52/// Similiar to std::accumulate but a projection can be applied to the elements first
53template <class Iterator, class T, class BinaryOp, class UnaryOp>

Callers 8

buildMethod · 0.85
make_reshape_squeezeFunction · 0.85
applyMethod · 0.85
find_parallel_reduceFunction · 0.85
get_usageFunction · 0.85
name_attributesMethod · 0.85
filter_boxes_by_scoreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected