Browse Source

!11484 add description for print

From: @zhangbuxue
Reviewed-by: @ginfung,@zh_qh
Signed-off-by: @ginfung
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
7799c86797
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      mindspore/ops/operations/debug_ops.py

+ 3
- 1
mindspore/ops/operations/debug_ops.py View File

@@ -329,10 +329,12 @@ class Print(PrimitiveWithInfer):


Note: Note:
In pynative mode, please use python print function. In pynative mode, please use python print function.
In graph mode, the bool, int, float, tuple, and list would be converted into Tensor to print,
str remains unchanged.


Inputs: Inputs:
- **input_x** (Union[Tensor, bool, int, float, str, tuple, list]) - The graph node to attach to. - **input_x** (Union[Tensor, bool, int, float, str, tuple, list]) - The graph node to attach to.
The input supports multiple strings and tensors which are separated by ','.
Supports multiple inputs which are separated by ','.


Supported Platforms: Supported Platforms:
``Ascend`` ``Ascend``


Loading…
Cancel
Save