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

Method write_to_file_opronly

src/plugin/impl/infkern_finder.cpp:262–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262cg::OperatorNodeBase* InfkernFinder::write_to_file_opronly(FILE* fout) {
263 size_t idx = 0;
264 cg::OperatorNodeBase* bad_opr = nullptr;
265
266 for (auto&& i : m_opr_seq) {
267 if (!i.write_status(fout, idx++) && !bad_opr)
268 bad_opr = i.opr();
269 }
270
271 return bad_opr;
272}
273
274cg::OperatorNodeBase* InfkernFinder::write_to_file(const char* fpath) {
275 FILE* fout = fopen(fpath, "w");

Callers 1

write_to_fileMethod · 0.80

Calls 2

write_statusMethod · 0.80
oprMethod · 0.45

Tested by

no test coverage detected