| 255 | } |
| 256 | |
| 257 | cg::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 |