提交 8758c017 编写于 作者: Z zhaojiaying01

format code style

上级 014fb131
......@@ -208,4 +208,4 @@ void ConvAddBnRelu(framework::CLHelper &cl_helper,
}
} // namespace operators
} // namespace paddle_mobile
\ No newline at end of file
} // namespace paddle_mobile
......@@ -35,8 +35,7 @@ void WinogradConv3x3(framework::CLHelper &cl_helper,
const ConvParam<GPU_CL> &param);
void ConvAddBnRelu(framework::CLHelper &cl_helper,
const ConvParam<GPU_CL> &param,
bool ifRelu = false,
const ConvParam<GPU_CL> &param, bool ifRelu = false,
const CLImage *biase = nullptr,
const CLImage *new_scale = nullptr,
const CLImage *new_bias = nullptr);
......
......@@ -74,7 +74,7 @@ bool ConvAddKernel<GPU_CL, float>::Init(FusionConvAddParam<GPU_CL> *param) {
template <>
void ConvAddKernel<GPU_CL, float>::Compute(
const FusionConvAddParam<GPU_CL> &param) {
ConvAddBnRelu(this->cl_helper_, param, false, param.Bias());
ConvAddBnRelu(this->cl_helper_, param, false, param.Bias());
}
template class ConvAddKernel<GPU_CL, float>;
......
......@@ -131,7 +131,8 @@ bool ConvBNAddReluKernel<GPU_CL, float>::Init(
template <>
void ConvBNAddReluKernel<GPU_CL, float>::Compute(
const FusionConvBNAddReluParam<GPU_CL> &param) {
ConvAddBnRelu(this->cl_helper_, param, true, param.Bias(), param.NewScale(), param.NewBias());
ConvAddBnRelu(this->cl_helper_, param, true, param.Bias(), param.NewScale(),
param.NewBias());
}
template class ConvBNAddReluKernel<GPU_CL, float>;
......
......@@ -127,7 +127,8 @@ bool ConvBNReluKernel<GPU_CL, float>::Init(
template <>
void ConvBNReluKernel<GPU_CL, float>::Compute(
const FusionConvBNReluParam<GPU_CL> &param) {
ConvAddBnRelu(this->cl_helper_, param, true, nullptr, param.NewScale(), param.NewBias());
ConvAddBnRelu(this->cl_helper_, param, true, nullptr, param.NewScale(),
param.NewBias());
}
template class ConvBNReluKernel<GPU_CL, float>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册