diff --git a/src/framework/tensor.h b/src/framework/tensor.h index 364f79cc84b5a3f4c2aa1838961eb092a9b842f0..797fcf5bffbe5e738fe352d1ca84602f0e5d86a0 100644 --- a/src/framework/tensor.h +++ b/src/framework/tensor.h @@ -257,10 +257,12 @@ class Tensor { struct FPGAArgs { float scale; - inline const float *scale_pointer() const { return &scale; } + inline float *scale_pointer() { return &scale; } }; - const struct FPGAArgs fpga_args() const { return fpgaArgs_; } + struct FPGAArgs fpga_args() const { + return fpgaArgs_; + } #endif private: diff --git a/src/operators/kernel/fpga/fc_relu_kernel.cpp b/src/operators/kernel/fpga/fc_relu_kernel.cpp index 704b0d76cb96eb62012bf85cae96b5c1448b3cc0..6b828f102412fb5aa8ef125c4ccb9b96598fc458 100644 --- a/src/operators/kernel/fpga/fc_relu_kernel.cpp +++ b/src/operators/kernel/fpga/fc_relu_kernel.cpp @@ -41,7 +41,6 @@ bool FusionFcReluKernel::Init(FusionFcReluParam *param) { fpga::ConvArgs convArgs; convArgs.relu_enabled = relu_enabled; - convArgs.bias_address = (void *)input_z_ptr; convArgs.filter_address = (void *)input_y_ptr; convArgs.filter_num = out->dims()[1]; convArgs.group_num = 1; diff --git a/src/operators/kernel/fpga/fusion_fc_kernel.cpp b/src/operators/kernel/fpga/fusion_fc_kernel.cpp index 9443270342a681199cd2cfe068a13d806cb606f9..340561a9aa97ceda0bd37c40d721a0c5e3e535b4 100644 --- a/src/operators/kernel/fpga/fusion_fc_kernel.cpp +++ b/src/operators/kernel/fpga/fusion_fc_kernel.cpp @@ -41,7 +41,6 @@ bool FusionFcKernel::Init(FusionFcParam *param) { fpga::ConvArgs convArgs; convArgs.relu_enabled = relu_enabled; - convArgs.bias_address = (void *)input_z_ptr; convArgs.filter_address = (void *)input_y_ptr; convArgs.filter_num = out->dims()[1]; convArgs.group_num = 1;