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

Method dump

src/serialization/impl/extern_c_opr.cpp:257–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void PlaceholderMGBOprDesc::dump(OprDumpContext& ctx, MGBOprDesc* desc) {
258 mgb_assert(
259 desc->type_name == PLACEHOLDER_TYPE_NAME,
260 "only placeholder ExternCOprRunner can be dumped; got type %s",
261 desc->type_name);
262 auto ud = user_data(desc);
263 ctx.dump_buf_with_len(ud->name.c_str(), ud->name.size());
264 ctx.dump_buf_with_len(ud->data.get(), ud->data_len);
265}
266
267/* ===================== ExternCOprRunner ===================== */
268MGB_DYN_TYPE_OBJ_FINAL_IMPL(ExternCOprRunner);

Callers 15

create_graph_dumpFunction · 0.45
test_graph_load_dumpFunction · 0.45
test_metadataFunction · 0.45
test_serializer_APlusBFunction · 0.45

Calls 3

dump_buf_with_lenMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by 15

create_graph_dumpFunction · 0.36
test_graph_load_dumpFunction · 0.36
test_metadataFunction · 0.36
test_serializer_APlusBFunction · 0.36