From 95f1764ba98d4301ac136299a83524195925e1dc Mon Sep 17 00:00:00 2001 From: "Yao,kun" Date: Mon, 2 Jul 2018 12:34:26 +0800 Subject: [PATCH] Codestyle --- src/operators/dropout_op.h | 5 +++-- src/operators/im2sequence_op.h | 2 +- src/operators/kernel/dropout_kernel.h | 2 +- src/operators/kernel/im2sequence_kernel.h | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/operators/dropout_op.h b/src/operators/dropout_op.h index 3fcafc331a..bc2986b791 100644 --- a/src/operators/dropout_op.h +++ b/src/operators/dropout_op.h @@ -39,8 +39,9 @@ class DropoutOp operators::DropoutKernel>( type, inputs, outputs, attrs, scope) {} - //using framework::OperatorWithKernel>; + // using framework::OperatorWithKernel>; void InferShape() const override; protected: diff --git a/src/operators/im2sequence_op.h b/src/operators/im2sequence_op.h index 7cc4429806..4c4dee6172 100644 --- a/src/operators/im2sequence_op.h +++ b/src/operators/im2sequence_op.h @@ -39,7 +39,7 @@ class Im2SequenceOp : public framework::OperatorWithKernel< operators::Im2SequenceKernel>(type, inputs, outputs, attrs, scope) {} - //using framework::OperatorWithKernel< + // using framework::OperatorWithKernel< // DeviceType, Im2SequenceParam, // operators::Im2SequenceKernel>::OperatorWithKernel; void InferShape() const override; diff --git a/src/operators/kernel/dropout_kernel.h b/src/operators/kernel/dropout_kernel.h index 0b217d7d31..5a37839719 100644 --- a/src/operators/kernel/dropout_kernel.h +++ b/src/operators/kernel/dropout_kernel.h @@ -26,7 +26,7 @@ template class DropoutKernel : public framework::OpKernelBase { public: void Compute(const DropoutParam& param) const; - bool Init(DropoutParam *para); + bool Init(DropoutParam* para); }; } // namespace operators } // namespace paddle_mobile diff --git a/src/operators/kernel/im2sequence_kernel.h b/src/operators/kernel/im2sequence_kernel.h index 1c3249dda7..cb592613f7 100644 --- a/src/operators/kernel/im2sequence_kernel.h +++ b/src/operators/kernel/im2sequence_kernel.h @@ -31,7 +31,7 @@ template class Im2SequenceKernel : public framework::OpKernelBase { public: - void Compute(const Im2SequenceParam ¶m) const; + void Compute(const Im2SequenceParam& param) const; bool Init(Im2SequenceParam* para); }; } // namespace operators -- GitLab