diff --git a/src/fpga/quantization.cpp b/src/fpga/quantization.cpp index e28142f6cc697322143eeaf332d2085e9256f961..d4e654cead6204f49a038e5aa16ee6a172eb48e8 100644 --- a/src/fpga/quantization.cpp +++ b/src/fpga/quantization.cpp @@ -47,7 +47,7 @@ static Dtype find_max(Dtype* data, int64_t num) { } // template -void quantify_filter(framework::Tensor* filter) { +void quantize_filter(framework::Tensor *filter) { DLOG << "quantilize_filter........"; float scale = 0; diff --git a/src/fpga/quantization.h b/src/fpga/quantization.h index 04cb2ce7c0a6df0df2c49431e49d2c5e73d44209..8067ddc839e348d99bf3343ec52d4b1bac79bf88 100644 --- a/src/fpga/quantization.h +++ b/src/fpga/quantization.h @@ -24,7 +24,7 @@ template static void chw_to_hwc(Dtype* data_in, Dtype* data_out, int64_t num, int64_t channel, int64_t height, int64_t width); -void quantify_filter(framework::Tensor* filter); +void quantize_filter(framework::Tensor *filter); } // namespace fpga } // namespace paddle_mobile diff --git a/src/operators/kernel/fpga/conv_add_bn_kernel.cpp b/src/operators/kernel/fpga/conv_add_bn_kernel.cpp index af52b10e3b1f45024c3a2aa480a2f3a10e16b4cc..ca6e1b1b836dba95133d82c1b5dc20a16317e798 100644 --- a/src/operators/kernel/fpga/conv_add_bn_kernel.cpp +++ b/src/operators/kernel/fpga/conv_add_bn_kernel.cpp @@ -60,7 +60,7 @@ bool ConvAddBNKernel::Init(FusionConvAddBNParam *param) { param->SetNewScale(new_scale); param->SetNewBias(new_bias); - fpga::quantify_filter(filter); + fpga::quantize_filter(filter); auto filter_ptr = filter->data(); fpga::ConvArgs convArgs; diff --git a/src/operators/kernel/fpga/conv_add_bn_relu_kernel.cpp b/src/operators/kernel/fpga/conv_add_bn_relu_kernel.cpp index 34deb2d6587dc77cd328c1fd17758622d04121b2..8ad5c8806f10219e827f55063ba7434b49c519d9 100644 --- a/src/operators/kernel/fpga/conv_add_bn_relu_kernel.cpp +++ b/src/operators/kernel/fpga/conv_add_bn_relu_kernel.cpp @@ -56,7 +56,7 @@ bool ConvAddBNReluKernel::Init(FusionConvAddBNReluParam *param) { } param->SetNewScale(new_scale); param->SetNewBias(new_bias); - fpga::quantify_filter(filter); + fpga::quantize_filter(filter); auto filter_ptr = filter->data(); fpga::ConvArgs convArgs; diff --git a/src/operators/kernel/fpga/conv_add_relu_kernel.cpp b/src/operators/kernel/fpga/conv_add_relu_kernel.cpp index 01e6bb07368ba5e2ff2ac741b51f2c325b1fe9d3..d955762e37b026066e25dee134d9b8d4afed0bd3 100644 --- a/src/operators/kernel/fpga/conv_add_relu_kernel.cpp +++ b/src/operators/kernel/fpga/conv_add_relu_kernel.cpp @@ -40,7 +40,7 @@ bool ConvAddReluKernel::Init(FusionConvAddReluParam *param) { bs_ptr[i * 2 + 1] = bias_ptr[i]; } - fpga::quantify_filter(filter); + fpga::quantize_filter(filter); auto filter_ptr = filter->data(); fpga::ConvArgs convArgs; diff --git a/src/operators/kernel/fpga/conv_bn_kernel.cpp b/src/operators/kernel/fpga/conv_bn_kernel.cpp index 70869a526f1fe92ee8d3223250eb62bea3d9fbc0..5b4f8b0ccdb6067018a3b175afba0c6d7414550b 100644 --- a/src/operators/kernel/fpga/conv_bn_kernel.cpp +++ b/src/operators/kernel/fpga/conv_bn_kernel.cpp @@ -55,7 +55,7 @@ bool ConvBNKernel::Init(FusionConvBNParam *param) { } param->SetNewScale(new_scale); param->SetNewBias(new_bias); - fpga::quantify_filter(filter); + fpga::quantize_filter(filter); auto filter_ptr = filter->data(); fpga::ConvArgs convArgs; diff --git a/src/operators/kernel/fpga/conv_bn_relu_kernel.cpp b/src/operators/kernel/fpga/conv_bn_relu_kernel.cpp index 9261c78657db185ffcf8271a913ae86ecc8fa3a6..10180c9461086454e0df1941d0f8d55bd57681fb 100644 --- a/src/operators/kernel/fpga/conv_bn_relu_kernel.cpp +++ b/src/operators/kernel/fpga/conv_bn_relu_kernel.cpp @@ -52,7 +52,7 @@ bool ConvBNReluKernel::Init(FusionConvBNReluParam *param) { } param->SetNewScale(new_scale); param->SetNewBias(new_bias); - fpga::quantify_filter(filter); + fpga::quantize_filter(filter); auto filter_ptr = filter->data(); fpga::ConvArgs convArgs; diff --git a/src/operators/kernel/fpga/fc_relu_kernel.cpp b/src/operators/kernel/fpga/fc_relu_kernel.cpp index 09ac91857af5141dc029845b51be4d0c119979c3..c920e758afdb57c19cb1b083c591eb3231a213f2 100644 --- a/src/operators/kernel/fpga/fc_relu_kernel.cpp +++ b/src/operators/kernel/fpga/fc_relu_kernel.cpp @@ -40,7 +40,7 @@ bool FusionFcReluKernel::Init(FusionFcReluParam *param) { bs_ptr[i * 2 + 1] = input_z_ptr[i]; } - fpga::quantify_filter(input_y); + fpga::quantize_filter(input_y); auto input_y_ptr = input_y->data(); fpga::ConvArgs convArgs; diff --git a/src/operators/kernel/fpga/fusion_fc_kernel.cpp b/src/operators/kernel/fpga/fusion_fc_kernel.cpp index f0bc5f4a1767b99005725a17ca905d45a8ca5785..e269bcb5a3b7f595d13bc0b76c089d480a2ec7a4 100644 --- a/src/operators/kernel/fpga/fusion_fc_kernel.cpp +++ b/src/operators/kernel/fpga/fusion_fc_kernel.cpp @@ -14,7 +14,7 @@ limitations under the License. */ #ifdef FUSION_FC_OP #include "operators/kernel/fusion_fc_kernel.h" -#include "fpga/fpga_quantilization.h" +#include "fpga/quantization.h" namespace paddle_mobile { namespace operators { @@ -39,7 +39,7 @@ bool FusionFcKernel::Init(FusionFcParam *param) { bs_ptr[i * 2 + 1] = input_z_ptr[i]; } - fpga::quantify_filter(input_y); + fpga::quantize_filter(input_y); auto input_y_ptr = input_y->data(); fpga::ConvArgs convArgs;