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

Method load

src/tensorrt/impl/tensorrt_runtime_opr.cpp:257–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257cg::OperatorNodeBase* TensorRTRuntimeOpr::LoadDumpImpl::load(
258 serialization::OprLoadContext& ctx, const cg::VarNodeArray& inputs,
259 const OperatorNodeConfig& config) {
260 inputs.at(0)->comp_node().activate();
261 auto buf = ctx.load_shared_buf_with_len();
262 return Opr::make(buf.data(), buf.size(), cg::to_symbol_var_array(inputs), config)
263 .at(0)
264 .node()
265 ->owner_opr();
266}
267
268#endif // MGB_ENABLE_TENSOR_RT
269

Callers

nothing calls this directly

Calls 9

makeFunction · 0.50
activateMethod · 0.45
comp_nodeMethod · 0.45
atMethod · 0.45
owner_oprMethod · 0.45
nodeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected