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

Function debug_name

src/instruction.cpp:444–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444static void debug_name(std::ostream& os, const instruction& ins)
445{
446 if(ins.name() == "@literal")
447 {
448 os << "@literal";
449 if(ins.get_literal().get_shape().elements() > 10)
450 os << "{ ... }";
451 else
452 os << "{" << ins.get_literal() << "}";
453 }
454 else
455 {
456 os << ins.get_operator();
457 }
458}
459
460void instruction::debug_print() const
461{

Callers 1

debug_printMethod · 0.85

Calls 3

nameMethod · 0.45
elementsMethod · 0.45
get_shapeMethod · 0.45

Tested by

no test coverage detected