From 7716fe5224e099eaa925483992ddad975c185a38 Mon Sep 17 00:00:00 2001 From: yangfei Date: Mon, 3 Sep 2018 12:01:52 +0800 Subject: [PATCH] repair bug of fusion_fc op --- src/operators/kernel/central-arm-func/fusion_fc_arm_func.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/operators/kernel/central-arm-func/fusion_fc_arm_func.h b/src/operators/kernel/central-arm-func/fusion_fc_arm_func.h index 425685ba31..0d8d793ccc 100644 --- a/src/operators/kernel/central-arm-func/fusion_fc_arm_func.h +++ b/src/operators/kernel/central-arm-func/fusion_fc_arm_func.h @@ -30,7 +30,6 @@ void FusionFcCompute(const FusionFcParam ¶m) { int axis = param.Axis(); Tensor *out = param.Out(); auto *out_data = out->mutable_data(); - float *bias_data = out->mutable_data(); const Tensor x_matrix = input_x->dims().size() > 2 ? framework::ReshapeToMatrix(*input_x, param.XNumColDims()) @@ -59,7 +58,7 @@ void FusionFcCompute(const FusionFcParam ¶m) { // DLOG << out_data[i]; // } math::matmul(x_matrix, false, y_matrix, false, static_cast(1), - out, static_cast(1), false, bias_data); + out, static_cast(1), false); PADDLE_MOBILE_ENFORCE(out_dim.size() == 2, " out_dim.size must be 2."); // if (out_dim.size() != 2) { // out->Resize(out_dim); -- GitLab