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

Method dump

src/tensorrt/impl/tensorrt_runtime_opr.cpp:249–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void TensorRTRuntimeOpr::LoadDumpImpl::dump(
250 serialization::OprDumpContext& ctx, const cg::OperatorNodeBase& opr) {
251 TensorRTUniquePtr<nvinfer1::IHostMemory> buf{
252 opr.cast_final_safe<Opr>().trt_cuda_engine()->serialize(), {}};
253 mgb_assert(buf, "failed to serialize ICudaEngine");
254 ctx.dump_buf_with_len(buf->data(), buf->size());
255}
256
257cg::OperatorNodeBase* TensorRTRuntimeOpr::LoadDumpImpl::load(
258 serialization::OprLoadContext& ctx, const cg::VarNodeArray& inputs,

Callers

nothing calls this directly

Calls 4

serializeMethod · 0.45
dump_buf_with_lenMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected