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

Method debug_print

src/value.cpp:590–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590void value::debug_print(bool show_type) const
591{
592 if(show_type)
593 {
594 switch(get_type())
595 {
596#define MIGRAPHX_VALUE_GENERATE_TYPE_STRING_CASE(vt, cpp_type) \
597 case vt##_type: std::cout << #vt << ": "; break;
598 MIGRAPHX_VISIT_VALUE_TYPES(MIGRAPHX_VALUE_GENERATE_TYPE_STRING_CASE)
599 MIGRAPHX_VALUE_GENERATE_TYPE_STRING_CASE(null, )
600 MIGRAPHX_VALUE_GENERATE_TYPE_STRING_CASE(array, )
601 MIGRAPHX_VALUE_GENERATE_TYPE_STRING_CASE(object, )
602 }
603 }
604 std::cout << *this << std::endl;
605}
606
607} // namespace MIGRAPHX_INLINE_NS
608} // namespace migraphx

Callers 3

applyMethod · 0.45
applyMethod · 0.45
remove_contiguousFunction · 0.45

Calls 1

get_typeFunction · 0.50

Tested by

no test coverage detected