diff --git a/src/framework/cl/cl_scope.h b/src/framework/cl/cl_scope.h index 5772010f596fedc512a3fa4c242040b5977cffbb..dccf28a2e418bcf66f4609ec1010285e768eb8a5 100644 --- a/src/framework/cl/cl_scope.h +++ b/src/framework/cl/cl_scope.h @@ -55,11 +55,11 @@ class CLScope { } auto program = CLEngine::Instance()->CreateProgramWith(context_.get(), file_name); - programs_[file_name] = program; + programs_[file_name] = std::move(program); status_ = clBuildProgram(program, 0, 0, 0, 0, 0); CL_CHECK_ERRORS(status_); - return program; + return program.get(); } private: diff --git a/src/framework/operator.h b/src/framework/operator.h index 56355b1f3e0bb901c80cff75e70c4c64858d1469..a83a95bbf8ccbff8ba57d11dc57bf6612930579c 100644 --- a/src/framework/operator.h +++ b/src/framework/operator.h @@ -18,7 +18,6 @@ limitations under the License. */ #include #include - #include "common/enforce.h" #include "common/type_define.h" #include "common/types.h" @@ -170,7 +169,6 @@ class OpKernelBase { CLHelper cl_helper_; - }; #define DEFINE_OP_CONSTRUCTOR(cls, parent_cls) \