From c983ca0c2e1093b442c6dbd92af817315454b073 Mon Sep 17 00:00:00 2001 From: qnqinan Date: Tue, 27 Nov 2018 14:59:58 +0800 Subject: [PATCH] fix a bug in feed kernel --- src/operators/kernel/fpga/V1/feed_kernel.cpp | 2 +- src/operators/kernel/fpga/V2/feed_kernel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operators/kernel/fpga/V1/feed_kernel.cpp b/src/operators/kernel/fpga/V1/feed_kernel.cpp index 161d8c9f0c..9c6468404e 100644 --- a/src/operators/kernel/fpga/V1/feed_kernel.cpp +++ b/src/operators/kernel/fpga/V1/feed_kernel.cpp @@ -28,8 +28,8 @@ template <> void FeedKernel::Compute(const FeedParam ¶m) { auto input = reinterpret_cast(const_cast(param.InputX())); - auto input_ptr = input->data(); fpga::format_image(input); + auto input_ptr = input->data(); Tensor *output = param.Out(); auto output_ptr = output->data(); diff --git a/src/operators/kernel/fpga/V2/feed_kernel.cpp b/src/operators/kernel/fpga/V2/feed_kernel.cpp index 4092307083..d1a721b5eb 100644 --- a/src/operators/kernel/fpga/V2/feed_kernel.cpp +++ b/src/operators/kernel/fpga/V2/feed_kernel.cpp @@ -29,8 +29,8 @@ template <> void FeedKernel::Compute(const FeedParam ¶m) { auto input = reinterpret_cast(const_cast(param.InputX())); - auto input_ptr = input->data(); fpga::format_image(input); + auto input_ptr = input->data(); Tensor *output = param.Out(); auto output_ptr = output->data(); -- GitLab