From 46595d6bd931c99ea74654a2f6590903f7946794 Mon Sep 17 00:00:00 2001 From: HongyuJia Date: Tue, 11 Oct 2022 13:00:36 +0800 Subject: [PATCH] fix typo (#46814) --- paddle/fluid/operators/matmul_op.cc | 4 ++-- python/paddle/tensor/math.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/operators/matmul_op.cc b/paddle/fluid/operators/matmul_op.cc index e928243c172..c563f559804 100644 --- a/paddle/fluid/operators/matmul_op.cc +++ b/paddle/fluid/operators/matmul_op.cc @@ -780,13 +780,13 @@ class MatMulOpMaker : public framework::OpProtoAndCheckerMaker { AddAttr>( "fused_reshape_Out", 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({}) .AsExtra(); AddAttr>( "fused_transpose_Out", 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({}) .AsExtra(); AddAttr( diff --git a/python/paddle/tensor/math.py b/python/paddle/tensor/math.py index ab956167d5b..12ee81a2469 100644 --- a/python/paddle/tensor/math.py +++ b/python/paddle/tensor/math.py @@ -538,7 +538,7 @@ def add(x, y, name=None): For case 2: 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). For example: @@ -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. 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: -- GitLab