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

Function chain

test/schedule_test.cpp:263–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262template <class T>
263static std::vector<migraphx::instruction_ref>
264chain(migraphx::module& m, std::size_t n, T x, migraphx::instruction_ref input)
265{
266 std::vector<migraphx::instruction_ref> result;
267 for(std::size_t i = 0; i < n; i++)
268 {
269 result.push_back(m.add_instruction(x, input));
270 input = result.back();
271 }
272 return result;
273}
274TEST_CASE(single_entry)
275{
276 scheduler t{};

Callers 1

TEST_CASEFunction · 0.85

Calls 3

backMethod · 0.80
push_backMethod · 0.45
add_instructionMethod · 0.45

Tested by

no test coverage detected