Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
46595d6b
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
46595d6b
编写于
10月 11, 2022
作者:
H
HongyuJia
提交者:
GitHub
10月 11, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix typo (#46814)
上级
a52ab135
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
4 deletion
+4
-4
paddle/fluid/operators/matmul_op.cc
paddle/fluid/operators/matmul_op.cc
+2
-2
python/paddle/tensor/math.py
python/paddle/tensor/math.py
+2
-2
未找到文件。
paddle/fluid/operators/matmul_op.cc
浏览文件 @
46595d6b
...
@@ -780,13 +780,13 @@ class MatMulOpMaker : public framework::OpProtoAndCheckerMaker {
...
@@ -780,13 +780,13 @@ class MatMulOpMaker : public framework::OpProtoAndCheckerMaker {
AddAttr
<
std
::
vector
<
int
>>
(
AddAttr
<
std
::
vector
<
int
>>
(
"fused_reshape_Out"
,
"fused_reshape_Out"
,
R"DOC(When MKLDNN MatMul_transpose_reshape fuse activated, "
R"DOC(When MKLDNN MatMul_transpose_reshape fuse activated, "
"it's a shape atribute of fused reshape for `Out` output.)DOC"
)
"it's a shape at
t
ribute of fused reshape for `Out` output.)DOC"
)
.
SetDefault
({})
.
SetDefault
({})
.
AsExtra
();
.
AsExtra
();
AddAttr
<
std
::
vector
<
int
>>
(
AddAttr
<
std
::
vector
<
int
>>
(
"fused_transpose_Out"
,
"fused_transpose_Out"
,
R"DOC(When MKLDNN MatMul_transpose_reshape fuse activated, "
R"DOC(When MKLDNN MatMul_transpose_reshape fuse activated, "
"it's a axis atribute of fused transpose for `Out` output.)DOC"
)
"it's a axis at
t
ribute of fused transpose for `Out` output.)DOC"
)
.
SetDefault
({})
.
SetDefault
({})
.
AsExtra
();
.
AsExtra
();
AddAttr
<
bool
>
(
AddAttr
<
bool
>
(
...
...
python/paddle/tensor/math.py
浏览文件 @
46595d6b
...
@@ -538,7 +538,7 @@ def add(x, y, name=None):
...
@@ -538,7 +538,7 @@ def add(x, y, name=None):
For case 2:
For case 2:
1. Broadcast $Y$ to match the shape of $X$, where axis is the start dimension index for broadcasting $Y$ onto $X$.
1. Broadcast $Y$ to match the shape of $X$, where axis is the start dimension index for broadcasting $Y$ onto $X$.
2. If $axis$ is -1 (default), $axis$=rank($X$)
−
rank($Y$).
2. If $axis$ is -1 (default), $axis$=rank($X$)
-
rank($Y$).
3. The trailing dimensions of size 1 for $Y$ will be ignored for the consideration of subsequence, such as shape($Y$) = (2, 1) => (2).
3. The trailing dimensions of size 1 for $Y$ will be ignored for the consideration of subsequence, such as shape($Y$) = (2, 1) => (2).
For example:
For example:
...
@@ -558,7 +558,7 @@ def add(x, y, name=None):
...
@@ -558,7 +558,7 @@ def add(x, y, name=None):
name (string, optional): For details, please refer to :ref:`api_guide_Name`. Generally, no setting is required. Default: None.
name (string, optional): For details, please refer to :ref:`api_guide_Name`. Generally, no setting is required. Default: None.
Returns:
Returns:
N-D Tensor. A location into which the result is stored. It
’
s dimension equals with x.
N-D Tensor. A location into which the result is stored. It
'
s dimension equals with x.
Examples:
Examples:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录