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

Method get_all_input_name

lite/src/network.cpp:241–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241std::vector<std::string> Network::get_all_input_name() const {
242 LITE_ERROR_HANDLER_BEGIN
243 LITE_ASSERT(m_loaded, "get_all_input_name should be used after model loaded.");
244 LITE_CHECK_NON_NULL_POINTER(m_impl);
245 auto all_input_name = m_impl->get_all_input_name();
246 std::vector<std::string> all_names;
247 for (auto& name : all_input_name) {
248 all_names.push_back(name);
249 }
250 return all_names;
251 LITE_ERROR_HANDLER_END
252}
253
254std::vector<std::string> Network::get_all_output_name() const {
255 LITE_ERROR_HANDLER_BEGIN

Callers 6

TESTFunction · 0.45
test_io_no_copy_axFunction · 0.45
format_and_printMethod · 0.45
get_io_infoMethod · 0.45
LITE_get_all_input_nameFunction · 0.45

Calls 1

push_backMethod · 0.45

Tested by 2

TESTFunction · 0.36
test_io_no_copy_axFunction · 0.36