提交 5ce03f1e 编写于 作者: 叶剑武

fix unnecessary GPUContext creating, avoiding mace_run.config overrided

上级 6e251095
......@@ -226,7 +226,7 @@ MaceEngineConfig::Impl::Impl(const DeviceType device_type)
: device_type_(device_type),
num_threads_(-1),
cpu_affinity_policy_(CPUAffinityPolicy::AFFINITY_NONE),
gpu_context_(new GPUContext),
gpu_context_(nullptr),
gpu_priority_hint_(GPUPriorityHint::PRIORITY_LOW),
gpu_perf_hint_(GPUPerfHint::PERF_NORMAL) {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册