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

Function for_each

src/include/migraphx/algorithm.hpp:181–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179/// Like std::for_each but can pass in another range like std::transform
180template <class Iterator1, class Iterator2, class F>
181F for_each(Iterator1 first1, Iterator1 last1, Iterator2 first2, F f)
182{
183 for(; first1 != last1; ++first1, ++first2)
184 f(*first1, *first2);
185 return f;
186}
187
188template <class Iterator1, class Iterator2>
189std::ptrdiff_t

Callers 15

to_string_rangeFunction · 0.70
par_for_eachFunction · 0.70
TEST_CASEFunction · 0.50
TEST_CASEFunction · 0.50
compute_shapeMethod · 0.50
test.hppFile · 0.50
make_onnx_json_nodeFunction · 0.50
apply_horizontal_finderFunction · 0.50
fuseMethod · 0.50
compute_common_dyn_dimsFunction · 0.50

Calls

no outgoing calls

Tested by 1

compute_shapeMethod · 0.40