modify format1128
This commit is contained in:
parent
5a96e68502
commit
c6ca767e23
|
@ -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`。
|
||||
|
|
|
@ -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` 的别名。
|
|
@ -28,5 +28,6 @@
|
|||
- **values** (Tensor) - 输入Tensor的最小值,其shape与索引相同。
|
||||
|
||||
异常:
|
||||
- **TypeError** - `x` 不是Tensor。
|
||||
- **TypeError** - `keep_dims` 不是bool。
|
||||
- **TypeError** - `axis` 不是int。
|
|
@ -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]` 。
|
||||
|
|
|
@ -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。
|
||||
|
|
|
@ -23,5 +23,5 @@ mindspore.ops.RandomPoisson
|
|||
异常:
|
||||
- **TypeError** - `shape` 不是Tensor或数据类型不是int32或int64。
|
||||
- **TypeError** - `dtype` 数据类型不是int32或int64。
|
||||
- **TypeError** - `shape` 不是一维Tensor。
|
||||
- **ValueError** - `shape` 不是一维Tensor。
|
||||
- **ValueError** - `shape` 的元素存在负数。
|
||||
|
|
|
@ -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,)` 。
|
||||
|
|
|
@ -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。
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue