!34266 modify format

Merge pull request !34266 from 俞涵/code_docs_0512
This commit is contained in:
i-robot 2022-05-12 09:02:17 +00:00 committed by Gitee
commit 9949f3ac64
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
11 changed files with 12 additions and 17 deletions

View File

@ -1,5 +1,5 @@
mindspore.ops.BitwiseAnd
==================
========================
.. py:class:: mindspore.ops.BitwiseAnd()

View File

@ -1,5 +1,5 @@
mindspore.ops.BitwiseOr
==================
=======================
.. py:class:: mindspore.ops.BitwiseOr()

View File

@ -1,5 +1,5 @@
mindspore.ops.BitwiseXor
==================
========================
.. py:class:: mindspore.ops.BitwiseXor()

View File

@ -1,5 +1,5 @@
mindspore.ops.Cdist
==================
===================
.. py:class:: mindspore.ops.Cdist()

View File

@ -1,5 +1,5 @@
mindspore.ops.bitwise_and
========================
=========================
.. py:function:: mindspore.ops.bitwise_and(x, y)

View File

@ -1,5 +1,5 @@
mindspore.ops.bitwise_xor
========================
=========================
.. py:function:: mindspore.ops.bitwise_xor(x, y)

View File

@ -1,5 +1,5 @@
mindspore.ops.cdist
==================
===================
.. py:function:: mindspore.ops.cdist(x, y, p)

View File

@ -1,5 +0,0 @@
mindspore.profiler
==================
.. automodule:: mindspore.profiler
:members:

View File

@ -710,7 +710,7 @@ class Softsign(Cell):
TypeError: If dtype of `input_x` is neither float16 nor float32.
Supported Platforms:
``Ascend`` `CPU``
``Ascend`` ``CPU``
Examples:
>>> input_x = Tensor(np.array([0, -1, 2, 30, -30]), mindspore.float32)

View File

@ -297,7 +297,7 @@ class Addcmul(Primitive):
output[i] = input\_data[i] + value[i] * (x1[i] * x2[i])
Inputs:
- **input_data**(Tensor) - The tensor to be added.
- **input_data** (Tensor) - The tensor to be added.
- **x1** (Tensor) - The tensor to be multiplied.
- **x2** (Tensor) - The tensor to be multiplied.
- **value** (Tensor) - The multiplier for tensor x1*x2.

View File

@ -31,10 +31,10 @@ class TreeNodeHelper:
@staticmethod
def get_sub_tree(node: Node) -> Optional[SymbolTree]:
"""
Getting symbol_tree from a `Tree` type `Node`.
Getting symbol_tree from a `Tree` type `Node`.
Args:
node (Node): A `Node` who may hold a sub-symbol_tree.
Args:
node (Node): A `Node` who may hold a sub-symbol_tree.
Returns:
An instance of SymbolTree represents sub-symbol_tree. Note that `node`'s symbol_tree maybe None, in this