Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in elementwise dir #53907

Merged
merged 1 commit into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion paddle/fluid/operators/elementwise/elementwise_add_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
};
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/operators/elementwise/elementwise_div_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
Expand Down
4 changes: 2 additions & 2 deletions paddle/fluid/operators/elementwise/elementwise_max_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
Expand All @@ -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, "
Expand Down
4 changes: 2 additions & 2 deletions paddle/fluid/operators/elementwise/elementwise_min_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
Expand All @@ -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, "
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/operators/elementwise/elementwise_mod_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
};
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/operators/elementwise/elementwise_mul_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
};
Expand Down
4 changes: 2 additions & 2 deletions paddle/fluid/operators/elementwise/elementwise_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -269,7 +269,7 @@ For example:

)DOC",
GetName(),
GetOpFuntionality(),
GetOpFunctionality(),
GetEquation());
}
};
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/operators/elementwise/elementwise_pow_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/operators/elementwise/elementwise_sub_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
};
Expand Down