Browse Source

!888 Add comment of print op cannot support tensor which the data is a scalar type

Merge pull request !888 from ghzl/print-op-cannot-support-tensor-scalar
tags/v0.3.0-alpha
mindspore-ci-bot Gitee 6 years ago
parent
commit
9d596558d3
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      mindspore/ops/operations/debug_ops.py

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

@@ -198,7 +198,11 @@ class Print(PrimitiveWithInfer):
Output tensor or string to stdout.

Note:
The print operation cannot support float64 and bool types currently.
The print operation cannot support the following cases currently.

1. The type of tensor is float64 or bool.

2. The data of tensor is a scalar type.

Inputs:
- **input_x** (Union[Tensor, str]) - The graph node to attach to. The input supports


Loading…
Cancel
Save