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

Method identify_graph_dump_format

src/serialization/impl/serializer.cpp:159–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159Maybe<GraphDumpFormat> GraphLoader::identify_graph_dump_format(InputFile& file) {
160#if MGB_ENABLE_FBS_SERIALIZATION
161 if (is_fbs_file(file)) {
162 return GraphDumpFormat::FLATBUFFERS;
163 }
164 if (is_fbs_v2_file(file)) {
165 return GraphDumpFormat::FLATBUFFERS_V2;
166 }
167#endif
168 return {};
169}
170
171} // namespace serialization
172} // namespace mgb

Callers

nothing calls this directly

Calls 2

is_fbs_fileFunction · 0.85
is_fbs_v2_fileFunction · 0.85

Tested by

no test coverage detected