modify format1128

This commit is contained in:
huodagu 2022-11-28 12:00:46 +08:00
parent 5a96e68502
commit c6ca767e23
16 changed files with 19 additions and 19 deletions

View File

@ -1,6 +1,6 @@
mindspore.Tensor.clamp
=======================
.. py:method:: mindspore.Tensor.clamp(min, max)
.. py:method:: mindspore.Tensor.clamp(min=None, max=None)
详情请参考 :func:`mindspore.ops.clamp`

View File

@ -1,6 +1,6 @@
mindspore.Tensor.clip
=====================
.. py:method:: mindspore.Tensor.clip(min, max)
.. py:method:: mindspore.Tensor.clip(min=None, max=None)
:func:`mindspore.Tensor.clamp` 的别名。

View File

@ -28,5 +28,6 @@
- **values** (Tensor) - 输入Tensor的最小值其shape与索引相同。
异常:
- **TypeError** - `x` 不是Tensor。
- **TypeError** - `keep_dims` 不是bool。
- **TypeError** - `axis` 不是int。

View File

@ -11,9 +11,9 @@ mindspore.ops.Histogram
低于最小值和高于最大值的元素将被忽略。
参数:
- **bins** (int 可选) - 直方图箱的数量可选。默认值100。若指定则必须为正数。
- **min** (float可选) - 范围下端的可选浮点数。默认值0.0。
- **max** (float可选) - 范围上限的可选浮点数。默认值0.0。
- **bins** (int, 可选) - 直方图箱的数量可选。默认值100。若指定则必须为正数。
- **min** (float, 可选) - 范围下端的可选浮点数。默认值0.0。
- **max** (float, 可选) - 范围上限的可选浮点数。默认值0.0。
输入:
- **x** (Tensor) - 输入Tensor类型支持 :math:`[float16, float32, int32]`

View File

@ -21,7 +21,7 @@ mindspore.ops.NonDeterministicInts
异常:
- **TypeError** - `shape` 不是Tensor。
- **ValueError** - `dtype` 不是mindspore.int32或mindspore.int64。
- **TypeError** - `dtype` 不是mindspore.int32或mindspore.int64。
- **ValueError** - `shape` 中含有负数。
- **ValueError** - `shape` 元素个数少于2。
- **ValueError** - `shape` 不是一维Tensor。

View File

@ -23,5 +23,5 @@ mindspore.ops.RandomPoisson
异常:
- **TypeError** - `shape` 不是Tensor或数据类型不是int32或int64。
- **TypeError** - `dtype` 数据类型不是int32或int64。
- **TypeError** - `shape` 不是一维Tensor。
- **ValueError** - `shape` 不是一维Tensor。
- **ValueError** - `shape` 的元素存在负数。

View File

@ -29,8 +29,7 @@ mindspore.ops.ScaleAndTranslate
- **TypeError** - `size` 不是int32类型。
- **TypeError** - `scale` 不是float32类型。
- **TypeError** - `translation` 不是Tensor或者数据类型不是float32。
- **ValueError** - `kernel_type` 不在列表里面:["lanczos1", "lanczos3", "lanczos5", "gaussian", "box", "triangle",
"keyscubic", "mitchellcubic"]。
- **ValueError** - `kernel_type` 不在列表里面:["lanczos1", "lanczos3", "lanczos5", "gaussian", "box", "triangle", "keyscubic", "mitchellcubic"]。
- **ValueError** - `images` 的秩不等于4。
- **ValueError** - `size` 的shape不是 :math:`(2,)`
- **ValueError** - `scale` 的shape不是 :math:`(2,)`

View File

@ -24,7 +24,7 @@ mindspore.ops.TruncatedNormal
异常:
- **TypeError** - `shape` 不是Tensor。
- **TypeError** - `dtype``shape` 的数据类型不支持。
- **ValueError** - `seed` 不是整数。
- **TypeError** - `seed` 不是整数。
- **ValueError** - `shape` 的元素不全大于零。
- **ValueError** - `shape` 不是一维Tensor。
- **ValueError** - 输出Tensor的元素个数大于1000000。

View File

@ -276,7 +276,7 @@ def where(condition, x, y):
output_i = \begin{cases} x_i,\quad &if\ condition_i \\ y_i,\quad &otherwise \end{cases}
Args:
condition (Bool Tensor, bool, scalar): If True, yield `x` otherwise yield `y`.
condition (Union[Bool Tensor, bool, scalar]): If True, yield `x` otherwise yield `y`.
x (Union[Tensor, Scalar]): Value (if `x` is a scalar) or values selected at indices where condition is True.
y (Union[Tensor, Scalar]): Value (if `y` is a scalar) or values selected at indices where condition is False.

View File

@ -390,7 +390,7 @@ def angle(x):
is the imaginary part. The argument returned by this function is of the form atan2(b,a).
Args:
x (Tensor) - The input tensor. types: complex64, complex128.
x (Tensor): The input tensor. types: complex64, complex128.
Returns:
Tensor, has the float32 or float64 type and the same shape as input.