Browse Source

!15575 Modify SparseToDense

From: @ZhengQihao3f3f3f
Reviewed-by: @wuxuejian,@liangchenghui
Signed-off-by: @wuxuejian
pull/15575/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
2f64dbc28a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      mindspore/ops/operations/sparse_ops.py

+ 3
- 0
mindspore/ops/operations/sparse_ops.py View File

@@ -34,6 +34,9 @@ class SparseToDense(PrimitiveWithInfer):
Returns:
Tensor, the shape of tensor is `dense_shape`.

Supported Platforms:
``CPU``

Examples:
>>> indices = Tensor([[0, 1], [1, 2]])
>>> values = Tensor([1, 2], dtype=ms.float32)


Loading…
Cancel
Save