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

Method get_all_output_name

lite/src/network.cpp:254–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254std::vector<std::string> Network::get_all_output_name() const {
255 LITE_ERROR_HANDLER_BEGIN
256 LITE_ASSERT(m_loaded, "get_all_output_name should be used after model loaded.");
257 LITE_CHECK_NON_NULL_POINTER(m_impl);
258 auto all_output_name = m_impl->get_all_output_name();
259 std::vector<std::string> all_names;
260 for (auto& name : all_output_name) {
261 all_names.push_back(name);
262 }
263 return all_names;
264 LITE_ERROR_HANDLER_END
265}
266
267int Network::get_device_id() const {
268 LITE_ERROR_HANDLER_BEGIN

Callers 9

output_infoFunction · 0.45
basic_load_from_pathFunction · 0.45
load_from_path_run_cudaFunction · 0.45
TESTFunction · 0.45
test_io_no_copy_axFunction · 0.45
format_and_printMethod · 0.45
get_io_infoMethod · 0.45
LITE_get_all_output_nameFunction · 0.45

Calls 1

push_backMethod · 0.45

Tested by 2

TESTFunction · 0.36
test_io_no_copy_axFunction · 0.36