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

Method scn_do_execute

src/tensorrt/impl/tensorrt_runtime_opr.cpp:159–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void TensorRTRuntimeOpr::scn_do_execute() {
160 auto batch = this->input(0)->shape()[0];
161 if (m_trt_engine_has_batch)
162 m_manager.exec(
163 this, m_gpu_allocator ? m_gpu_allocator->comp_node() : CompNode{},
164 m_engine.get());
165 else
166 m_manager.exec(
167 this, m_gpu_allocator ? m_gpu_allocator->comp_node() : CompNode{},
168 m_engine.get(), batch);
169}
170
171void TensorRTRuntimeOpr::init_output_dtype() {
172 DType dt_trt, dt_input;

Callers

nothing calls this directly

Calls 5

shapeMethod · 0.45
inputMethod · 0.45
execMethod · 0.45
comp_nodeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected