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

Function create_gather

test/normalize_ops_test.cpp:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static migraphx::module create_gather(int64_t axis)
70{
71 migraphx::module m;
72 migraphx::shape sd{migraphx::shape::float_type, {2, 3, 4}};
73 migraphx::shape si{migraphx::shape::int64_type, {2, 3}};
74 auto di = m.add_parameter("data", sd);
75 auto ii = m.add_parameter("ind", si);
76 auto r = m.add_instruction(migraphx::make_op("gather", {{"axis", axis}}), di, ii);
77 m.add_return({r});
78
79 return m;
80}
81
82TEST_CASE(gather_test)
83{

Callers 1

TEST_CASEFunction · 0.85

Calls 4

add_parameterMethod · 0.80
make_opFunction · 0.50
add_instructionMethod · 0.45
add_returnMethod · 0.45

Tested by

no test coverage detected