!15575 Modify SparseToDense

From: @ZhengQihao3f3f3f
Reviewed-by: @wuxuejian,@liangchenghui
Signed-off-by: @wuxuejian
This commit is contained in:
mindspore-ci-bot 2021-04-23 16:11:24 +08:00 committed by Gitee
commit 2f64dbc28a
1 changed files with 3 additions and 0 deletions

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)