From 3eee4b8b93abb4d89732d1c0282b6634b3e221c3 Mon Sep 17 00:00:00 2001 From: zhaojiaying01 Date: Thu, 18 Oct 2018 17:12:16 +0800 Subject: [PATCH] add fetch kernel for FPGA, GPU_MALI --- src/operators/kernel/fpga/fetch_kernel.cpp | 6 +++--- src/operators/kernel/mali/fetch_kernel.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/operators/kernel/fpga/fetch_kernel.cpp b/src/operators/kernel/fpga/fetch_kernel.cpp index a5f7171248..e56ac30127 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 a5f7171248..f74280cfb3 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 -- GitLab