!33724 Modift Some API Note
Merge pull request !33724 from liuyang/code_docs_note
This commit is contained in:
commit
8179bfdc7c
|
@ -11,4 +11,8 @@ mindspore.pytype_to_dtype
|
|||
|
||||
**返回:**
|
||||
|
||||
MindSpore的数据类型。
|
||||
MindSpore的数据类型。
|
||||
|
||||
**异常:**
|
||||
|
||||
- **NotImplementedError** – Python类型无法转换为MindSpore类型。
|
|
@ -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` 不是字符串类型。
|
||||
|
|
|
@ -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。
|
||||
|
||||
**返回:**
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue