mindspore.numpy.cbrt
- mindspore.numpy.cbrt(x, dtype=None)[源代码]
Returns the cube-root of a tensor, element-wise.
说明
Numpy arguments casting, order, subok, signature, and extobj are not supported.
- 参数
x (Tensor) – Input tensor.
dtype (
mindspore.dtype
, optional) – Default:None
. Overrides the dtype of the output Tensor.
- 返回
Tensor.
- Supported Platforms:
Ascend
GPU
CPU
样例
>>> import mindspore.numpy as np >>> a = np.asarray([1, -1, 3, -8, 64]) >>> output = np.cbrt(a) >>> print(output) [ 1. -1. 1.4422495 -2. 4. ]