diff --git a/src/operators/kernel/fpga/fetch_kernel.cpp b/src/operators/kernel/fpga/fetch_kernel.cpp index a5f717124855c8b4e1cbb91f9ff015430d5d3f45..e56ac301271f120d888a4feea11122f40885633e 100644 --- a/src/operators/kernel/fpga/fetch_kernel.cpp +++ b/src/operators/kernel/fpga/fetch_kernel.cpp @@ -19,16 +19,16 @@ namespace paddle_mobile { namespace operators { template <> -bool FetchKernel::Init(FetchParam *param) { +bool FetchKernel::Init(FetchParam *param) { return true; } template <> -void FetchKernel::Compute(const FetchParam ¶m) { +void FetchKernel::Compute(const FetchParam ¶m) { param.Out()->ShareDataWith(*(param.InputX())); } -template class FetchKernel; +template class FetchKernel; } // namespace operators } // namespace paddle_mobile diff --git a/src/operators/kernel/mali/fetch_kernel.cpp b/src/operators/kernel/mali/fetch_kernel.cpp index a5f717124855c8b4e1cbb91f9ff015430d5d3f45..f74280cfb322b8135d99ca7fb7e2652a08588bb3 100644 --- a/src/operators/kernel/mali/fetch_kernel.cpp +++ b/src/operators/kernel/mali/fetch_kernel.cpp @@ -19,16 +19,16 @@ namespace paddle_mobile { namespace operators { template <> -bool FetchKernel::Init(FetchParam *param) { +bool FetchKernel::Init(FetchParam *param) { return true; } template <> -void FetchKernel::Compute(const FetchParam ¶m) { +void FetchKernel::Compute(const FetchParam ¶m) { param.Out()->ShareDataWith(*(param.InputX())); } -template class FetchKernel; +template class FetchKernel; } // namespace operators } // namespace paddle_mobile