未验证 提交 2782b291 编写于 作者: C co63oc 提交者: GitHub

Fix typos in elementwise dir (#53907)

上级 acb5039a
......@@ -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";
}
};
......
......@@ -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";
}
};
......
......@@ -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";
}
};
......
......@@ -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.";
}
......
......@@ -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, "
......
......@@ -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, "
......
......@@ -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";
}
};
......
......@@ -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";
}
};
......
......@@ -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());
}
};
......
......@@ -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.";
}
......
......@@ -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";
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册