|
Apollo 11.0
自动驾驶开放平台
|
warm-up function for torch model to avoid first multiple slowly inference 更多...
#include <vector>#include "torch/extension.h"#include "torch/script.h"命名空间 | |
| namespace | apollo::prediction |
| apollo::prediction | |
| namespace | apollo |
| class register implement | |
函数 | |
| void | apollo::prediction::WarmUp (const std::vector< torch::jit::IValue > &torch_inputs, torch::jit::script::Module *model, at::Tensor *default_output) |
| warm up function to avoid slowly inference of torch model | |
warm-up function for torch model to avoid first multiple slowly inference
在文件 warm_up.h 中定义.