From 57075cbf5c6f797961a801f155b4a718dd6aa842 Mon Sep 17 00:00:00 2001 From: qinan Date: Mon, 18 Nov 2019 17:01:38 +0800 Subject: [PATCH] fix a bug of sigmoid kernel in FPGA v2 track, test=develop , closes#2438 (#2439) * update proposal and psroipool kernel file in FPGA V2 track * update, test=develop * update FPGA v2 pe cpp file and ew kernel files, test=develop * fix a bug of sigmoid kernel in FPGA v2 track, test=develop --- mobile/src/operators/kernel/fpga/V2/sigmoid_kernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/operators/kernel/fpga/V2/sigmoid_kernel.cpp b/mobile/src/operators/kernel/fpga/V2/sigmoid_kernel.cpp index 194fd5a305..44aae4be32 100644 --- a/mobile/src/operators/kernel/fpga/V2/sigmoid_kernel.cpp +++ b/mobile/src/operators/kernel/fpga/V2/sigmoid_kernel.cpp @@ -48,7 +48,7 @@ bool SigmoidKernel::Init(SigmoidParam *param) { template <> void SigmoidKernel::Compute(const SigmoidParam ¶m) { fpga::PerformBypass(param.FpgaArgs()); - param.Out()->scale[0] = 127.0; + param.Out()->scale[0] = 1.0; } } // namespace operators -- GitLab