diff --git a/mace/libmace/mace.cc b/mace/libmace/mace.cc index 500b84eff39c4d9e8cd578a2b90949bc7524d27f..13ce1a580fe15d7fe315fc55f9ffa939e3db9354 100644 --- a/mace/libmace/mace.cc +++ b/mace/libmace/mace.cc @@ -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) {}