MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_output_name

Method get_output_name

lite/src/mge/network_impl.cpp:1113–1118  ·  view source on GitHub ↗

get the output tensor name in the order of graph

Source from the content-addressed store, hash-verified

1111
1112//! get the output tensor name in the order of graph
1113const char* NetworkImplDft::get_output_name(size_t index) const {
1114 LITE_ASSERT(
1115 index < m_load_result.output_var_list.size(),
1116 "The output tensor index is large than the total outputs number.");
1117 return m_load_result.output_var_list[index].node()->name().c_str();
1118}
1119
1120//! get the input tensor name in the order of graph
1121const char* NetworkImplDft::get_input_name(size_t index) const {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
nameMethod · 0.45
nodeMethod · 0.45

Tested by

no test coverage detected