提交 97f68d82 编写于 作者: Y Yao,kun

Codestyle

上级 aefdbbc9
...@@ -39,8 +39,9 @@ class DropoutOp ...@@ -39,8 +39,9 @@ class DropoutOp
operators::DropoutKernel<DeviceType, T>>( operators::DropoutKernel<DeviceType, T>>(
type, inputs, outputs, attrs, scope) {} type, inputs, outputs, attrs, scope) {}
//using framework::OperatorWithKernel<DeviceType, DropoutParam, // using framework::OperatorWithKernel<DeviceType, DropoutParam,
// operators::DropoutKernel<DeviceType, T>>; // operators::DropoutKernel<DeviceType,
// T>>;
void InferShape() const override; void InferShape() const override;
protected: protected:
......
...@@ -39,7 +39,7 @@ class Im2SequenceOp : public framework::OperatorWithKernel< ...@@ -39,7 +39,7 @@ class Im2SequenceOp : public framework::OperatorWithKernel<
operators::Im2SequenceKernel<DeviceType, T>>(type, inputs, outputs, operators::Im2SequenceKernel<DeviceType, T>>(type, inputs, outputs,
attrs, scope) {} attrs, scope) {}
//using framework::OperatorWithKernel< // using framework::OperatorWithKernel<
// DeviceType, Im2SequenceParam, // DeviceType, Im2SequenceParam,
// operators::Im2SequenceKernel<DeviceType, T>>::OperatorWithKernel; // operators::Im2SequenceKernel<DeviceType, T>>::OperatorWithKernel;
void InferShape() const override; void InferShape() const override;
......
...@@ -26,7 +26,7 @@ template <typename DeviceType, typename T> ...@@ -26,7 +26,7 @@ template <typename DeviceType, typename T>
class DropoutKernel : public framework::OpKernelBase<DeviceType, DropoutParam> { class DropoutKernel : public framework::OpKernelBase<DeviceType, DropoutParam> {
public: public:
void Compute(const DropoutParam& param) const; void Compute(const DropoutParam& param) const;
bool Init(DropoutParam *para); bool Init(DropoutParam* para);
}; };
} // namespace operators } // namespace operators
} // namespace paddle_mobile } // namespace paddle_mobile
......
...@@ -31,7 +31,7 @@ template <typename DeviceType, typename T> ...@@ -31,7 +31,7 @@ template <typename DeviceType, typename T>
class Im2SequenceKernel class Im2SequenceKernel
: public framework::OpKernelBase<DeviceType, Im2SequenceParam> { : public framework::OpKernelBase<DeviceType, Im2SequenceParam> {
public: public:
void Compute(const Im2SequenceParam &param) const; void Compute(const Im2SequenceParam& param) const;
bool Init(Im2SequenceParam* para); bool Init(Im2SequenceParam* para);
}; };
} // namespace operators } // namespace operators
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册