!33724 Modift Some API Note

Merge pull request !33724 from liuyang/code_docs_note
This commit is contained in:
i-robot 2022-04-29 03:03:40 +00:00 committed by Gitee
commit 8179bfdc7c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 9 additions and 5 deletions

View File

@ -11,4 +11,8 @@ mindspore.pytype_to_dtype
**返回:**
MindSpore的数据类型。
MindSpore的数据类型。
**异常:**
- **NotImplementedError** Python类型无法转换为MindSpore类型。

View File

@ -17,5 +17,4 @@ mindspore.save_checkpoint
**异常:**
- **TypeError** 如果参数 `save_obj` 类型不为nn.Cell或者list且如果参数 `integrated_save``async_save` 非bool类型。
- **TypeError** 如果参数 `ckpt_file_name` 不是str类型。
- **TypeError** 如果参数 `save_obj` 类型不为nn.Cell或者list且如果参数 `integrated_save``async_save` 非bool类型。如果参数 `ckpt_file_name` 不是字符串类型。

View File

@ -10,6 +10,7 @@ mindspore.nn.auc
- **x** (Union[np.array, list]) - 从ROC曲线False Positive Rate, FPR来看np.array具有假阳性率。如果是多类则为np.array列表。Shape为 :math:`(N)`
- **y** (Union[np.array, list]) - 从ROC曲线True Positive Rate, TPR来看np.array具有假阳性率。如果是多类则为np.array列表。Shape为 :math:`(N)`
- **reorder** (bool) - 如果为False那么 `x` 必须是单调上升或下降的如果为True那么 `x` 将会按照升序排序。默认值False。
**返回:**

View File

@ -263,8 +263,8 @@ def save_checkpoint(save_obj, ckpt_file_name, integrated_save=True,
mode, currently supports 'AES-GCM' and 'AES-CBC'. Default: 'AES-GCM'.
Raises:
TypeError: If the parameter save_obj is not `nn.Cell` or list type. And if the parameter
`integrated_save` and `async_save` are not bool type.
TypeError: If the parameter save_obj is not `nn.Cell` or list type. And if the parameter `integrated_save`
and `async_save` are not bool type. If the parameter ckpt_file_name is not string type.
Examples:
>>> from mindspore import save_checkpoint