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

Function add_allocation

tools/api/api.cpp:337–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335static void print_module(const module& m) { std::cout << m << std::endl; }
336
337static migraphx::instruction_ref add_allocation(module& m, const migraphx::shape& s)
338{
339 return m.add_instruction(migraphx::make_op("allocate", {{"shape", migraphx::to_value(s)}}), {});
340}
341
342struct experimental_custom_op
343{

Callers

nothing calls this directly

Calls 3

make_opFunction · 0.50
to_valueFunction · 0.50
add_instructionMethod · 0.45

Tested by

no test coverage detected