提交 8dd3ff3a 编写于 作者: Z zhaojiaying01

format code style

上级 44809658
...@@ -35,8 +35,7 @@ void WinogradConv3x3(framework::CLHelper &cl_helper, ...@@ -35,8 +35,7 @@ void WinogradConv3x3(framework::CLHelper &cl_helper,
const ConvParam<GPU_CL> &param); const ConvParam<GPU_CL> &param);
void ConvAddBnRelu(framework::CLHelper &cl_helper, void ConvAddBnRelu(framework::CLHelper &cl_helper,
const ConvParam<GPU_CL> &param, const ConvParam<GPU_CL> &param, bool ifRelu = false,
bool ifRelu = false,
const CLImage *biase = nullptr, const CLImage *biase = nullptr,
const CLImage *new_scale = nullptr, const CLImage *new_scale = nullptr,
const CLImage *new_bias = nullptr); const CLImage *new_bias = nullptr);
......
...@@ -131,7 +131,8 @@ bool ConvBNAddReluKernel<GPU_CL, float>::Init( ...@@ -131,7 +131,8 @@ bool ConvBNAddReluKernel<GPU_CL, float>::Init(
template <> template <>
void ConvBNAddReluKernel<GPU_CL, float>::Compute( void ConvBNAddReluKernel<GPU_CL, float>::Compute(
const FusionConvBNAddReluParam<GPU_CL> &param) { 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>; template class ConvBNAddReluKernel<GPU_CL, float>;
......
...@@ -127,7 +127,8 @@ bool ConvBNReluKernel<GPU_CL, float>::Init( ...@@ -127,7 +127,8 @@ bool ConvBNReluKernel<GPU_CL, float>::Init(
template <> template <>
void ConvBNReluKernel<GPU_CL, float>::Compute( void ConvBNReluKernel<GPU_CL, float>::Compute(
const FusionConvBNReluParam<GPU_CL> &param) { 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>; template class ConvBNReluKernel<GPU_CL, float>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册