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

Method argument

src/argument.cpp:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31inline namespace MIGRAPHX_INLINE_NS {
32
33argument::argument(const shape& s) : m_shape(s)
34{
35 auto buffer = make_shared_array<char>(s.bytes());
36 assign_buffer({[=]() mutable { return buffer.get(); }});
37}
38
39argument::argument(shape s, std::nullptr_t)
40 : m_shape(std::move(s)), m_data({[] { return nullptr; }})

Callers 7

run_one_caseFunction · 0.80
mainFunction · 0.80
test_load_save_argFunction · 0.80
test_add_scalarFunction · 0.80
test_shapeFunction · 0.80
test_inputFunction · 0.80
runMethod · 0.80

Calls 3

to_shapesFunction · 0.70
bytesMethod · 0.45
getMethod · 0.45

Tested by 5

run_one_caseFunction · 0.64
test_load_save_argFunction · 0.64
test_add_scalarFunction · 0.64
test_shapeFunction · 0.64
test_inputFunction · 0.64