| 252 | } |
| 253 | |
| 254 | std::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 | |
| 267 | int Network::get_device_id() const { |
| 268 | LITE_ERROR_HANDLER_BEGIN |