Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
2782b291
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
2782b291
编写于
5月 18, 2023
作者:
C
co63oc
提交者:
GitHub
5月 18, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos in elementwise dir (#53907)
上级
acb5039a
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
14 addition
and
14 deletion
+14
-14
paddle/fluid/operators/elementwise/elementwise_add_op.cc
paddle/fluid/operators/elementwise/elementwise_add_op.cc
+1
-1
paddle/fluid/operators/elementwise/elementwise_div_op.cc
paddle/fluid/operators/elementwise/elementwise_div_op.cc
+1
-1
paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc
...le/fluid/operators/elementwise/elementwise_floordiv_op.cc
+1
-1
paddle/fluid/operators/elementwise/elementwise_heaviside_op.cc
...e/fluid/operators/elementwise/elementwise_heaviside_op.cc
+1
-1
paddle/fluid/operators/elementwise/elementwise_max_op.cc
paddle/fluid/operators/elementwise/elementwise_max_op.cc
+2
-2
paddle/fluid/operators/elementwise/elementwise_min_op.cc
paddle/fluid/operators/elementwise/elementwise_min_op.cc
+2
-2
paddle/fluid/operators/elementwise/elementwise_mod_op.cc
paddle/fluid/operators/elementwise/elementwise_mod_op.cc
+1
-1
paddle/fluid/operators/elementwise/elementwise_mul_op.cc
paddle/fluid/operators/elementwise/elementwise_mul_op.cc
+1
-1
paddle/fluid/operators/elementwise/elementwise_op.h
paddle/fluid/operators/elementwise/elementwise_op.h
+2
-2
paddle/fluid/operators/elementwise/elementwise_pow_op.cc
paddle/fluid/operators/elementwise/elementwise_pow_op.cc
+1
-1
paddle/fluid/operators/elementwise/elementwise_sub_op.cc
paddle/fluid/operators/elementwise/elementwise_sub_op.cc
+1
-1
未找到文件。
paddle/fluid/operators/elementwise/elementwise_add_op.cc
浏览文件 @
2782b291
...
@@ -46,7 +46,7 @@ class ElementwiseAddOpMaker : public ElementwiseOpMaker {
...
@@ -46,7 +46,7 @@ class ElementwiseAddOpMaker : public ElementwiseOpMaker {
"should be int32, int64, float32, float64."
);
"should be int32, int64, float32, float64."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Add two tensors element-wise"
;
return
"Add two tensors element-wise"
;
}
}
};
};
...
...
paddle/fluid/operators/elementwise/elementwise_div_op.cc
浏览文件 @
2782b291
...
@@ -44,7 +44,7 @@ class ElementwiseDivOpMaker : public ElementwiseOpMaker {
...
@@ -44,7 +44,7 @@ class ElementwiseDivOpMaker : public ElementwiseOpMaker {
"should be int32, int64, float32, float64."
);
"should be int32, int64, float32, float64."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Divide two tensors element-wise"
;
return
"Divide two tensors element-wise"
;
}
}
};
};
...
...
paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc
浏览文件 @
2782b291
...
@@ -48,7 +48,7 @@ class ElementwiseFloorDivOpMaker : public ElementwiseOpMaker {
...
@@ -48,7 +48,7 @@ class ElementwiseFloorDivOpMaker : public ElementwiseOpMaker {
"should be int32, int64."
);
"should be int32, int64."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Floor divide two tensors element-wise"
;
return
"Floor divide two tensors element-wise"
;
}
}
};
};
...
...
paddle/fluid/operators/elementwise/elementwise_heaviside_op.cc
浏览文件 @
2782b291
...
@@ -36,7 +36,7 @@ class ElementwiseHeavisideOpMaker : public ElementwiseOpMaker {
...
@@ -36,7 +36,7 @@ class ElementwiseHeavisideOpMaker : public ElementwiseOpMaker {
"which is the value when X = 0. Its dtype should be same as X."
);
"which is the value when X = 0. Its dtype should be same as X."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Computes the Heaviside step function determined by Y "
return
"Computes the Heaviside step function determined by Y "
"for each element in X."
;
"for each element in X."
;
}
}
...
...
paddle/fluid/operators/elementwise/elementwise_max_op.cc
浏览文件 @
2782b291
...
@@ -44,7 +44,7 @@ class ElementwiseMaxOpMaker : public ElementwiseOpMaker {
...
@@ -44,7 +44,7 @@ class ElementwiseMaxOpMaker : public ElementwiseOpMaker {
AddInput
(
"Y"
,
"The second tensor holding the elements to be compared."
);
AddInput
(
"Y"
,
"The second tensor holding the elements to be compared."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Compare two tensors and returns a new tensor containing the "
return
"Compare two tensors and returns a new tensor containing the "
"element-wise maxima."
;
"element-wise maxima."
;
}
}
...
@@ -63,7 +63,7 @@ class ElementwiseFMaxOpMaker : public ElementwiseOpMaker {
...
@@ -63,7 +63,7 @@ class ElementwiseFMaxOpMaker : public ElementwiseOpMaker {
AddInput
(
"Y"
,
"The second tensor holding the elements to be compared."
);
AddInput
(
"Y"
,
"The second tensor holding the elements to be compared."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Compare two tensors and returns a new tensor containing the "
return
"Compare two tensors and returns a new tensor containing the "
"element-wise maxima. If the element of one tensor is nan, "
"element-wise maxima. If the element of one tensor is nan, "
"return the element value of the other tensor, if both are nan, "
"return the element value of the other tensor, if both are nan, "
...
...
paddle/fluid/operators/elementwise/elementwise_min_op.cc
浏览文件 @
2782b291
...
@@ -41,7 +41,7 @@ class ElementwiseMinOpMaker : public ElementwiseOpMaker {
...
@@ -41,7 +41,7 @@ class ElementwiseMinOpMaker : public ElementwiseOpMaker {
AddInput
(
"Y"
,
"The second tensor holding the elements to be compared."
);
AddInput
(
"Y"
,
"The second tensor holding the elements to be compared."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Compare two tensors and returns a new tensor containing the "
return
"Compare two tensors and returns a new tensor containing the "
"element-wise minima."
;
"element-wise minima."
;
}
}
...
@@ -60,7 +60,7 @@ class ElementwiseFMinOpMaker : public ElementwiseOpMaker {
...
@@ -60,7 +60,7 @@ class ElementwiseFMinOpMaker : public ElementwiseOpMaker {
AddInput
(
"Y"
,
"The second tensor holding the elements to be compared."
);
AddInput
(
"Y"
,
"The second tensor holding the elements to be compared."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Compare two tensors and returns a new tensor containing the "
return
"Compare two tensors and returns a new tensor containing the "
"element-wise minima. If the element of one tensor is nan, "
"element-wise minima. If the element of one tensor is nan, "
"return the element value of the other tensor, if both are nan, "
"return the element value of the other tensor, if both are nan, "
...
...
paddle/fluid/operators/elementwise/elementwise_mod_op.cc
浏览文件 @
2782b291
...
@@ -46,7 +46,7 @@ class ElementwiseModOpMaker : public ElementwiseOpMaker {
...
@@ -46,7 +46,7 @@ class ElementwiseModOpMaker : public ElementwiseOpMaker {
"should be int32, int64, float32 or float64."
);
"should be int32, int64, float32 or float64."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Mod two tensors element-wise"
;
return
"Mod two tensors element-wise"
;
}
}
};
};
...
...
paddle/fluid/operators/elementwise/elementwise_mul_op.cc
浏览文件 @
2782b291
...
@@ -44,7 +44,7 @@ class ElementwiseMulOpMaker : public ElementwiseOpMaker {
...
@@ -44,7 +44,7 @@ class ElementwiseMulOpMaker : public ElementwiseOpMaker {
"should be int32, int64, float32, float64."
);
"should be int32, int64, float32, float64."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Multiply two tensors element-wise"
;
return
"Multiply two tensors element-wise"
;
}
}
};
};
...
...
paddle/fluid/operators/elementwise/elementwise_op.h
浏览文件 @
2782b291
...
@@ -225,7 +225,7 @@ class ElementwiseOpMaker : public framework::OpProtoAndCheckerMaker {
...
@@ -225,7 +225,7 @@ class ElementwiseOpMaker : public framework::OpProtoAndCheckerMaker {
}
}
virtual
void
AddOpComment
()
{
AddComment
(
GetCommentExamples
());
}
virtual
void
AddOpComment
()
{
AddComment
(
GetCommentExamples
());
}
virtual
std
::
string
GetOpFuntionality
()
const
{
return
""
;
}
virtual
std
::
string
GetOpFun
c
tionality
()
const
{
return
""
;
}
virtual
std
::
string
GetName
()
const
=
0
;
virtual
std
::
string
GetName
()
const
=
0
;
virtual
std
::
string
GetEquation
()
const
=
0
;
virtual
std
::
string
GetEquation
()
const
=
0
;
...
@@ -269,7 +269,7 @@ For example:
...
@@ -269,7 +269,7 @@ For example:
)DOC"
,
)DOC"
,
GetName
(),
GetName
(),
GetOpFuntionality
(),
GetOpFun
c
tionality
(),
GetEquation
());
GetEquation
());
}
}
};
};
...
...
paddle/fluid/operators/elementwise/elementwise_pow_op.cc
浏览文件 @
2782b291
...
@@ -76,7 +76,7 @@ class ElementwisePowOpMaker : public ElementwiseOpMaker {
...
@@ -76,7 +76,7 @@ class ElementwisePowOpMaker : public ElementwiseOpMaker {
void
AddInputY
()
override
{
AddInput
(
"Y"
,
"(Variable), The exponents."
);
}
void
AddInputY
()
override
{
AddInput
(
"Y"
,
"(Variable), The exponents."
);
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"First tensor elements raised to powers from the second tensor, "
return
"First tensor elements raised to powers from the second tensor, "
"element-wise."
;
"element-wise."
;
}
}
...
...
paddle/fluid/operators/elementwise/elementwise_sub_op.cc
浏览文件 @
2782b291
...
@@ -49,7 +49,7 @@ class ElementwiseSubOpMaker : public ElementwiseOpMaker {
...
@@ -49,7 +49,7 @@ class ElementwiseSubOpMaker : public ElementwiseOpMaker {
"should be int32, int64, float32, float64."
);
"should be int32, int64, float32, float64."
);
}
}
std
::
string
GetOpFuntionality
()
const
override
{
std
::
string
GetOpFun
c
tionality
()
const
override
{
return
"Substract two tensors element-wise"
;
return
"Substract two tensors element-wise"
;
}
}
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录