| 170 | #endif |
| 171 | |
| 172 | std::vector<uint8_t> ModelMdl::get_model_data() { |
| 173 | std::vector<uint8_t> out_data; |
| 174 | auto out_file = mgb::serialization::OutputFile::make_vector_proxy(&out_data); |
| 175 | using DumpConfig = mgb::serialization::GraphDumper::DumpConfig; |
| 176 | DumpConfig config{1, false, false}; |
| 177 | auto dumper = |
| 178 | mgb::serialization::GraphDumper::make(std::move(out_file), m_format.val()); |
| 179 | dumper->dump(m_load_result.output_var_list, config); |
| 180 | return out_data; |
| 181 | } |
| 182 | |
| 183 | void ModelMdl::update_io() { |
| 184 | //! update output varlist when input shape maybe change(some pass excution |
no test coverage detected