diff --git a/paddle/fluid/operators/matmul_op.cc b/paddle/fluid/operators/matmul_op.cc index e928243c172129cea5c21f445af41191b25eb80e..c563f559804abef0ce929c8236368782fe5d4f14 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 ab956167d5bc65565c23f863fc52e7039f83dd46..12ee81a246902a46fbda819ca4204839c1af7174 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: