未验证 提交 46595d6b 编写于 作者: H HongyuJia 提交者: GitHub

fix typo (#46814)

上级 a52ab135
...@@ -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 attribute 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 attribute of fused transpose for `Out` output.)DOC")
.SetDefault({}) .SetDefault({})
.AsExtra(); .AsExtra();
AddAttr<bool>( AddAttr<bool>(
......
...@@ -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. Its 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.
先完成此消息的编辑!
想要评论请 注册