diff --git a/paddle/fluid/operators/elementwise/elementwise_add_op.cc b/paddle/fluid/operators/elementwise/elementwise_add_op.cc index 0b522c1d6b35bee2e95bf9aa36b26c46c96de15f..91ed63b3e2efd20c7f55bbf627da98b5d455605d 100644 --- a/paddle/fluid/operators/elementwise/elementwise_add_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_add_op.cc @@ -46,7 +46,7 @@ class ElementwiseAddOpMaker : public ElementwiseOpMaker { "should be int32, int64, float32, float64."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Add two tensors element-wise"; } }; diff --git a/paddle/fluid/operators/elementwise/elementwise_div_op.cc b/paddle/fluid/operators/elementwise/elementwise_div_op.cc index 88856658d3175ca93f4104f70d980e08f6e94344..7321157f9c28fc15a2e5074cd218ad08f8787e57 100644 --- a/paddle/fluid/operators/elementwise/elementwise_div_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_div_op.cc @@ -44,7 +44,7 @@ class ElementwiseDivOpMaker : public ElementwiseOpMaker { "should be int32, int64, float32, float64."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Divide two tensors element-wise"; } }; diff --git a/paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc b/paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc index 27c12c300bd9f036cb172af5ec493bab30e92a6f..72011de26af6b8d41dd0efd6bf99babd49cd77c0 100644 --- a/paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc @@ -48,7 +48,7 @@ class ElementwiseFloorDivOpMaker : public ElementwiseOpMaker { "should be int32, int64."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Floor divide two tensors element-wise"; } }; diff --git a/paddle/fluid/operators/elementwise/elementwise_heaviside_op.cc b/paddle/fluid/operators/elementwise/elementwise_heaviside_op.cc index 14e5e10743d3fdf39886ef61d27f18fbbb625f46..c13c6165c6bf4dac5f00d7e94cc86212ab57a2c7 100644 --- a/paddle/fluid/operators/elementwise/elementwise_heaviside_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_heaviside_op.cc @@ -36,7 +36,7 @@ class ElementwiseHeavisideOpMaker : public ElementwiseOpMaker { "which is the value when X = 0. Its dtype should be same as X."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Computes the Heaviside step function determined by Y " "for each element in X."; } diff --git a/paddle/fluid/operators/elementwise/elementwise_max_op.cc b/paddle/fluid/operators/elementwise/elementwise_max_op.cc index a945456a226ef01e02c25d9f9f40b9a5de293f56..ead7b122be2b4c479263e9ac0e9833186d8f3cfa 100644 --- a/paddle/fluid/operators/elementwise/elementwise_max_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_max_op.cc @@ -44,7 +44,7 @@ class ElementwiseMaxOpMaker : public ElementwiseOpMaker { AddInput("Y", "The second tensor holding the elements to be compared."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Compare two tensors and returns a new tensor containing the " "element-wise maxima."; } @@ -63,7 +63,7 @@ class ElementwiseFMaxOpMaker : public ElementwiseOpMaker { AddInput("Y", "The second tensor holding the elements to be compared."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Compare two tensors and returns a new tensor containing the " "element-wise maxima. If the element of one tensor is nan, " "return the element value of the other tensor, if both are nan, " diff --git a/paddle/fluid/operators/elementwise/elementwise_min_op.cc b/paddle/fluid/operators/elementwise/elementwise_min_op.cc index 9fd70754888bd82d58fee252b3b8212bc55b13cf..cfc93e791fda4be85df48d51b472c858eb436e6d 100644 --- a/paddle/fluid/operators/elementwise/elementwise_min_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_min_op.cc @@ -41,7 +41,7 @@ class ElementwiseMinOpMaker : public ElementwiseOpMaker { AddInput("Y", "The second tensor holding the elements to be compared."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Compare two tensors and returns a new tensor containing the " "element-wise minima."; } @@ -60,7 +60,7 @@ class ElementwiseFMinOpMaker : public ElementwiseOpMaker { AddInput("Y", "The second tensor holding the elements to be compared."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Compare two tensors and returns a new tensor containing the " "element-wise minima. If the element of one tensor is nan, " "return the element value of the other tensor, if both are nan, " diff --git a/paddle/fluid/operators/elementwise/elementwise_mod_op.cc b/paddle/fluid/operators/elementwise/elementwise_mod_op.cc index 4caeaf4180f299dbbe5c2317486166c86664c128..5a98351b4460cc47970a23e4d94a437db4aae589 100644 --- a/paddle/fluid/operators/elementwise/elementwise_mod_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_mod_op.cc @@ -46,7 +46,7 @@ class ElementwiseModOpMaker : public ElementwiseOpMaker { "should be int32, int64, float32 or float64."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Mod two tensors element-wise"; } }; diff --git a/paddle/fluid/operators/elementwise/elementwise_mul_op.cc b/paddle/fluid/operators/elementwise/elementwise_mul_op.cc index 0fc1cab739105a2205143bc5980007ac1e773a9d..9967d0fd95c4a5d6db9ec07c414d1bd835a8545b 100644 --- a/paddle/fluid/operators/elementwise/elementwise_mul_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_mul_op.cc @@ -44,7 +44,7 @@ class ElementwiseMulOpMaker : public ElementwiseOpMaker { "should be int32, int64, float32, float64."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Multiply two tensors element-wise"; } }; diff --git a/paddle/fluid/operators/elementwise/elementwise_op.h b/paddle/fluid/operators/elementwise/elementwise_op.h index 2f8db0e737a21a8c2bddeb4c1d809b1a6d4d3b79..67954e3fa26483d5ed47c0b07ddde8c04b083ce3 100644 --- a/paddle/fluid/operators/elementwise/elementwise_op.h +++ b/paddle/fluid/operators/elementwise/elementwise_op.h @@ -225,7 +225,7 @@ class ElementwiseOpMaker : public framework::OpProtoAndCheckerMaker { } virtual void AddOpComment() { AddComment(GetCommentExamples()); } - virtual std::string GetOpFuntionality() const { return ""; } + virtual std::string GetOpFunctionality() const { return ""; } virtual std::string GetName() const = 0; virtual std::string GetEquation() const = 0; @@ -269,7 +269,7 @@ For example: )DOC", GetName(), - GetOpFuntionality(), + GetOpFunctionality(), GetEquation()); } }; diff --git a/paddle/fluid/operators/elementwise/elementwise_pow_op.cc b/paddle/fluid/operators/elementwise/elementwise_pow_op.cc index d2c047f0e4bbd85e44e161a01de44f3e35bf08c7..34f9e6f61cbfc39aa0381db0f1bcbb21db2983cd 100644 --- a/paddle/fluid/operators/elementwise/elementwise_pow_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_pow_op.cc @@ -76,7 +76,7 @@ class ElementwisePowOpMaker : public ElementwiseOpMaker { void AddInputY() override { AddInput("Y", "(Variable), The exponents."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "First tensor elements raised to powers from the second tensor, " "element-wise."; } diff --git a/paddle/fluid/operators/elementwise/elementwise_sub_op.cc b/paddle/fluid/operators/elementwise/elementwise_sub_op.cc index 0c8c9bc6e804c1ecc968284d534707a5ae0226c7..87c4e4977258f6ba42ed3639e1e8312e38dc43ad 100644 --- a/paddle/fluid/operators/elementwise/elementwise_sub_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_sub_op.cc @@ -49,7 +49,7 @@ class ElementwiseSubOpMaker : public ElementwiseOpMaker { "should be int32, int64, float32, float64."); } - std::string GetOpFuntionality() const override { + std::string GetOpFunctionality() const override { return "Substract two tensors element-wise"; } };