From 75312dd21a3f8ef1af9da4823b5468e96f6fd6c2 Mon Sep 17 00:00:00 2001 From: zhao-lupeng Date: Fri, 25 Nov 2022 11:20:51 +0800 Subject: [PATCH] fix warn --- tf_adapter_2.x/npu_device/core/npu_op_executor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf_adapter_2.x/npu_device/core/npu_op_executor.h b/tf_adapter_2.x/npu_device/core/npu_op_executor.h index 8a520f4ca..b23496e1c 100644 --- a/tf_adapter_2.x/npu_device/core/npu_op_executor.h +++ b/tf_adapter_2.x/npu_device/core/npu_op_executor.h @@ -84,7 +84,7 @@ class OpExecutor { virtual void RunImpl(TFE_Context *context, NpuDevice *device, int num_inputs, TFE_TensorHandle **inputs, int num_outputs, TFE_TensorHandle **outputs, TF_Status *status) const = 0; - virtual ~OpExecutor() = default; + virtual ~OpExecutor() { op_spec_ = nullptr; }; protected: virtual std::string AttachedDebugString() const = 0; -- Gitee