Browse Source

!31707 CSR add note

Merge pull request !31707 from huangmengxi/code_docs_csr
r1.7
i-robot Gitee 4 years ago
parent
commit
a5dbbb4bb5
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      docs/api/api_python/mindspore/mindspore.CSRTensor.rst
  2. +1
    -0
      mindspore/python/mindspore/common/tensor.py

+ 1
- 0
docs/api/api_python/mindspore/mindspore.CSRTensor.rst View File

@@ -8,6 +8,7 @@ mindspore.CSRTensor

.. note::
这是一个实验特性,在未来可能会发生API的变化。
如果values或indices的长度超出了indptr所指定的取值范围,超出部分的行为将没有定义。

**参数:**



+ 1
- 0
mindspore/python/mindspore/common/tensor.py View File

@@ -2627,6 +2627,7 @@ class CSRTensor(CSRTensor_):

Note:
This is an experimental feature and is subjected to change.
If the length of values or indices exceeds the range indicated by indptr, its behavior will be undefined.

Args:
indptr (Tensor): 1-D Tensor of size `shape[0] + 1`, which indicates the


Loading…
Cancel
Save