diff --git a/docs/api/api_python/mindspore.ops.rst b/docs/api/api_python/mindspore.ops.rst index 94c2f70ee48..a65817263a1 100644 --- a/docs/api/api_python/mindspore.ops.rst +++ b/docs/api/api_python/mindspore.ops.rst @@ -233,6 +233,7 @@ mindspore.ops mindspore.ops.hypot mindspore.ops.igamma mindspore.ops.igammac + mindspore.ops.imag mindspore.ops.i0 mindspore.ops.inv mindspore.ops.invert diff --git a/docs/api/api_python/ops/mindspore.ops.func_imag.rst b/docs/api/api_python/ops/mindspore.ops.func_imag.rst new file mode 100644 index 00000000000..a5655b3a163 --- /dev/null +++ b/docs/api/api_python/ops/mindspore.ops.func_imag.rst @@ -0,0 +1,15 @@ +mindspore.ops.imag +=================== + +.. py:function:: mindspore.ops.imag(input) + + 返回包含输入Tensor的虚部。如果输入为实数,则返回零。 + + 参数: + - **input** (Tensor) - 要计算的输入Tensor。 + + 返回: + Tensor,shape与 `input` 相同。 + + 异常: + - **TypeError** - 如果 `input` 不是Tensor。 diff --git a/docs/api/api_python_en/mindspore.ops.rst b/docs/api/api_python_en/mindspore.ops.rst index 0b42dcf7198..3e45afa98aa 100644 --- a/docs/api/api_python_en/mindspore.ops.rst +++ b/docs/api/api_python_en/mindspore.ops.rst @@ -233,6 +233,7 @@ Element-wise Operations mindspore.ops.hypot mindspore.ops.igamma mindspore.ops.igammac + mindspore.ops.imag mindspore.ops.i0 mindspore.ops.inv mindspore.ops.invert