forked from mindspore-Ecosystem/mindspore
fix link anchor
This commit is contained in:
parent
aca75c0200
commit
01509b7b66
|
@ -659,7 +659,7 @@ thor(net, learning_rate, damping, momentum, weight_decay=0.0, loss_scale=1.0, ba
|
|||
|
||||
##### Dump Config
|
||||
|
||||
Previously, we could only dump tensor data for one or all steps. To make the dump feature easier to use, we changed the dump configuration format and dump structure. View the [New Dump Tutorial](https://www.mindspore.cn/tutorials/experts/zh-CN/master/debug/dump.html#dump).
|
||||
Previously, we could only dump tensor data for one or all steps. To make the dump feature easier to use, we changed the dump configuration format and dump structure. View the [New Dump Tutorial](https://www.mindspore.cn/tutorials/experts/en/master/debug/dump.html#dump-introduction).
|
||||
|
||||
| 1.2.1 | 1.3.0 |
|
||||
| ------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
将CIFAR-100数据集转换为MindRecord格式数据集。
|
||||
|
||||
.. note::
|
||||
示例的详细信息,请参见 `转换CIFAR-10数据集 <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/record.html#转换CIFAR-10数据集>`_。
|
||||
示例的详细信息,请参见 `转换CIFAR-10数据集 <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/record.html#转换cifar-10数据集>`_。
|
||||
|
||||
**参数:**
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
将CIFAR-10数据集转换为MindRecord格式数据集。
|
||||
|
||||
.. note::
|
||||
示例的详细信息,请参见 `转换CIFAR-10数据集 <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/record.html#转换CIFAR-10数据集>`_。
|
||||
示例的详细信息,请参见 `转换CIFAR-10数据集 <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/record.html#转换cifar-10数据集>`_。
|
||||
|
||||
**参数:**
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
将CSV格式数据集转换为MindRecord格式数据集。
|
||||
|
||||
.. note::
|
||||
示例的详细信息,请参见 `转换CSV数据集 <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/record.html#转换CSV数据集>`_。
|
||||
示例的详细信息,请参见 `转换CSV数据集 <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/record.html#转换csv数据集>`_。
|
||||
|
||||
**参数:**
|
||||
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
|
||||
将ImageNet数据集转换为MindRecord格式数据集。
|
||||
|
||||
.. note::
|
||||
示例的详细信息,请参见 `Converting the ImageNet Dataset <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/record.html#converting-the-imagenet-dataset>`_。
|
||||
|
||||
**参数:**
|
||||
|
||||
- **map_file** (str) - 标签映射文件的路径。映射文件内容如下:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
将TFRecord格式数据集转换为MindRecord格式数据集。
|
||||
|
||||
.. note::
|
||||
示例的详细信息,请参见 `转换TFRecord数据集 <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/record.html#转换TFRecord数据集>`_。
|
||||
示例的详细信息,请参见 `转换TFRecord数据集 <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/record.html#转换tfrecord数据集>`_。
|
||||
|
||||
**参数:**
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ MindSpore context,用于配置当前执行环境,包括执行模式、执行
|
|||
|
||||
- **check_bprop** (bool) - 表示是否检查反向传播节点,以确保反向传播节点输出的形状(shape)和数据类型与输入参数相同。默认值:False。
|
||||
- **max_call_depth** (int) - 指定函数调用的最大深度。其值必须为正整数。默认值:1000。当嵌套Cell太深或子图数量太多时,需要设置 `max_call_depth` 参数。系统最大堆栈深度应随着 `max_call_depth` 的调整而设置为更大的值,否则可能会因为系统堆栈溢出而引发 "core dumped" 异常。
|
||||
- **enable_sparse** (bool) - 表示是否启用稀疏特征。默认值:False。有关稀疏特征和稀疏张量的详细信息,请查看 `稀疏张量 <https://www.mindspore.cn/tutorials/zh-CN/master/beginner/tensor.html#sparse-tensor>`_。
|
||||
- **enable_sparse** (bool) - 表示是否启用稀疏特征。默认值:False。有关稀疏特征和稀疏张量的详细信息,请查看 `稀疏张量 <https://www.mindspore.cn/tutorials/zh-CN/master/beginner/tensor.html#稀疏张量>`_。
|
||||
- **grad_for_scalar** (bool): 表示是否获取标量梯度。默认值:False。当 `grad_for_scalar` 设置为True时,则可以导出函数的标量输入。由于后端目前不支持伸缩操作,所以该接口只支持在前端可推演的简单操作。
|
||||
- **enable_compile_cache** (bool) - 表示是否加载或者保存前端编译的图。当 `enable_compile_cache` 被设置为True时,在第一次执行的过程中,一个硬件无关的编译缓存会被生成并且导出为一个MINDIR文件。当该网络被再次执行时,如果 `enable_compile_cache` 仍然为True并且网络脚本没有被更改,那么这个编译缓存会被加载。注意目前只支持有限的Python脚本更改的自动检测,这意味着可能有正确性风险。默认值:False。这是一个实验特性,可能会被更改或者删除。
|
||||
- **compile_cache_path** (str) - 保存前端图编译缓存的路径。默认值:"."。如果目录不存在,系统会自动创建这个目录。缓存会被保存到如下目录: `compile_cache_path/rank_${rank_id}/` 。 `rank_id` 是集群上当前设备的ID。
|
||||
|
|
|
@ -399,7 +399,7 @@ Parameter操作算子
|
|||
* - mindspore.ops.shape_mul
|
||||
- The input of shape_mul must be shape multiply elements in tuple(shape).
|
||||
* - mindspore.ops.stop_gradient
|
||||
- Disable update during back propagation. (`stop_gradient <https://www.mindspore.cn/tutorials/en/master/beginner/autograd.html#stopping-gradient>`_)
|
||||
- Disable update during back propagation. (`stop_gradient <https://www.mindspore.cn/tutorials/en/master/beginner/autograd.html#stopping-gradient-calculation>`_)
|
||||
* - mindspore.ops.string_concat
|
||||
- Concatenate two strings.
|
||||
* - mindspore.ops.string_eq
|
||||
|
|
|
@ -7,7 +7,7 @@ mindspore.nn.Flatten
|
|||
|
||||
**输入:**
|
||||
|
||||
- **x** (Tensor) - 要展平的输入Tensor。shape为 :math:`(N, *)`,其中 :math:`*` 表示任意的附加维度。数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_。
|
||||
- **x** (Tensor) - 要展平的输入Tensor。shape为 :math:`(N, *)`,其中 :math:`*` 表示任意的附加维度。数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_。
|
||||
|
||||
**输出:**
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ mindspore.nn.ReLU
|
|||
|
||||
**输入:**
|
||||
|
||||
- **x** (Tensor) - 用于计算ReLU的任意维度的Tensor。数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_。
|
||||
- **x** (Tensor) - 用于计算ReLU的任意维度的Tensor。数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_。
|
||||
|
||||
**输出:**
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ mindspore.nn.Tril
|
|||
|
||||
**输入:**
|
||||
|
||||
- **x** (Tensor):输入Tensor。数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 。
|
||||
- **x** (Tensor):输入Tensor。数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 。
|
||||
- **k** (int):对角线的索引。默认值:0。假设输入的矩阵的维度分别为d1,d2,则k的范围应在[-min(d1, d2)+1, min(d1, d2)-1],超出该范围时输出值与输入 `x` 一致。
|
||||
|
||||
**输出:**
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
在指定的通信组中汇聚Tensor。
|
||||
|
||||
.. note::
|
||||
集合中所有进程的Tensor必须具有相同的shape和格式。用户在使用之前需要设置环境变量,运行下面的例子。获取详情请点击官方网站 `MindSpore <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#communication-operators>`_ 。
|
||||
集合中所有进程的Tensor必须具有相同的shape和格式。用户在使用之前需要设置环境变量,运行下面的例子。获取详情请点击官方网站 `MindSpore <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#通信算子>`_ 。
|
||||
|
||||
**参数:**
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
使用指定方式对通信组内的所有设备的Tensor数据进行规约操作,所有设备都得到相同的结果
|
||||
|
||||
.. note::
|
||||
AllReduce操作暂不支持"prod"。集合中的所有进程的Tensor必须具有相同的shape和格式。用户在使用之前需要设置环境变量,运行下面的例子。获取详情请点击官方网站 `MindSpore <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#communication-operators>`_ 。
|
||||
AllReduce操作暂不支持"prod"。集合中的所有进程的Tensor必须具有相同的shape和格式。用户在使用之前需要设置环境变量,运行下面的例子。获取详情请点击官方网站 `MindSpore <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#通信算子>`_ 。
|
||||
|
||||
**参数:**
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ mindspore.ops.Div
|
|||
|
||||
**输入:**
|
||||
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **y** (Union[Tensor, number.Number, bool]) - 第二个输入,当第一个输入是Tensor时,第二个输入应该是一个number.Number或bool值,或数据类型为number或bool_的Tensor。当第一个输入是Scalar时,第二个输入必须是数据类型为number或bool_的Tensor。
|
||||
|
||||
**输出:**
|
||||
|
|
|
@ -17,7 +17,7 @@ mindspore.ops.add
|
|||
|
||||
**参数:**
|
||||
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **y** (Union[Tensor, number.Number, bool]) - 第二个输入,当第一个输入是Tensor时,第二个输入应该是一个number.Number或bool值,或数据类型为number或bool_的Tensor。当第一个输入是Scalar时,第二个输入必须是数据类型为number或bool_的Tensor。
|
||||
|
||||
**返回:**
|
||||
|
|
|
@ -9,7 +9,7 @@ mindspore.ops.addn
|
|||
|
||||
**参数:**
|
||||
|
||||
- **x** (Union(tuple[Tensor], list[Tensor])) - Tensor组成的tuble或list,类型为 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 或 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 。
|
||||
- **x** (Union(tuple[Tensor], list[Tensor])) - Tensor组成的tuble或list,类型为 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 或 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 。
|
||||
|
||||
**返回:**
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ mindspore.ops.eye
|
|||
|
||||
- **n** (int) - 指定返回Tensor的行数。仅支持常量值。
|
||||
- **m** (int) - 指定返回Tensor的列数。仅支持常量值。
|
||||
- **t** (mindspore.dtype) - 指定返回Tensor的数据类型。数据类型必须是 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 或 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 。
|
||||
- **t** (mindspore.dtype) - 指定返回Tensor的数据类型。数据类型必须是 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 或 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 。
|
||||
|
||||
**返回:**
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ mindspore.ops.fill
|
|||
|
||||
**参数:**
|
||||
|
||||
- **type** (mindspore.dtype) - 指定输出Tensor的数据类型。数据类型只支持 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 和 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 。
|
||||
- **type** (mindspore.dtype) - 指定输出Tensor的数据类型。数据类型只支持 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 和 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 。
|
||||
- **shape** (tuple[int]) - 指定输出Tensor的shape。
|
||||
- **value** (Union(number.Number, bool)) - 用来填充输出Tensor的值。
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ mindspore.ops.gather
|
|||
|
||||
.. note::
|
||||
1.input_indices的值必须在 `[0, input_param.shape[axis])` 范围内,超出该范围结果未定义。
|
||||
2.Ascend平台上,input_params的数据类型当前不能是 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 。
|
||||
2.Ascend平台上,input_params的数据类型当前不能是 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 。
|
||||
|
||||
**参数:**
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ mindspore.ops.gt
|
|||
|
||||
**参数:**
|
||||
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **y** (Union[Tensor, number.Number, bool]) - 第二个输入,当第一个输入是Tensor时,第二个输入应该是一个number.Number或bool值,或数据类型为number或bool_的Tensor。当第一个输入是Scalar时,第二个输入必须是数据类型为number或bool_的Tensor。
|
||||
|
||||
**返回:**
|
||||
|
|
|
@ -20,7 +20,7 @@ mindspore.ops.le
|
|||
|
||||
**参数:**
|
||||
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **y** (Union[Tensor, number.Number, bool]) - 第二个输入,当第一个输入是Tensor时,第二个输入应该是一个number.Number或bool值,或数据类型为number或bool_的Tensor。当第一个输入是Scalar时,第二个输入必须是数据类型为number或bool_的Tensor。
|
||||
|
||||
**返回:**
|
||||
|
|
|
@ -17,7 +17,7 @@ mindspore.ops.mul
|
|||
|
||||
**参数:**
|
||||
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **y** (Union[Tensor, number.Number, bool]) - 第二个输入,当第一个输入是Tensor时,第二个输入应该是一个number.Number或bool值,或数据类型为number或bool_的Tensor。当第一个输入是Scalar时,第二个输入必须是数据类型为number或bool_的Tensor。
|
||||
|
||||
**返回:**
|
||||
|
|
|
@ -7,7 +7,7 @@ mindspore.ops.size
|
|||
|
||||
**参数:**
|
||||
|
||||
- **input_x** (Tensor) - 输入参数,shape为 :math:`(x_1, x_2, ..., x_R)` 。数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 。
|
||||
- **input_x** (Tensor) - 输入参数,shape为 :math:`(x_1, x_2, ..., x_R)` 。数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 。
|
||||
|
||||
**返回:**
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ mindspore.ops.sub
|
|||
|
||||
**参数:**
|
||||
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **x** (Union[Tensor, number.Number, bool]) - 第一个输入,是一个number.Number、bool值或数据类型为 `number <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 或 `bool_ <https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore/mindspore.dtype.html#mindspore.dtype>`_ 的Tensor。
|
||||
- **y** (Union[Tensor, number.Number, bool]) - 第二个输入,当第一个输入是Tensor时,第二个输入应该是一个number.Number或bool值,或数据类型为number或bool_的Tensor。当第一个输入是Scalar时,第二个输入必须是数据类型为number或bool_的Tensor。
|
||||
|
||||
**返回:**
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
SummaryCollector可以收集一些常用信息。
|
||||
|
||||
它可以帮助收集loss、学习率、计算图等。
|
||||
SummaryCollector还可以允许通过 `summary算子 <https://www.mindspore.cn/mindinsight/docs/zh-CN/master/summary_record.html#summarysummarycollector>`_ 将数据收集到summary文件中。
|
||||
SummaryCollector还可以允许通过 `summary算子 <https://www.mindspore.cn/mindinsight/docs/zh-CN/master/summary_record.html#方式二-结合summary算子和summarycollector自定义收集网络中的数据>`_ 将数据收集到summary文件中。
|
||||
|
||||
.. note::
|
||||
- 使用SummaryCollector时,需要将代码放置到 `if __name__ == "__main__"` 中运行。
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
该方法将在一个指定的目录中创建summary文件和lineage文件,并将数据写入文件。
|
||||
|
||||
它通过执行 `record` 方法将数据写入文件。除了通过 `summary算子 <https://www.mindspore.cn/mindinsight/docs/zh-CN/master/summary_record.html#summarysummarycollector>`_ 记录网络的数据外,SummaryRecord还支持通过 `自定义回调函数和自定义训练循环 <https://www.mindspore.cn/mindinsight/docs/zh-CN/master/summary_record.html#callback>`_ 记录数据。
|
||||
它通过执行 `record` 方法将数据写入文件。除了通过 `summary算子 <https://www.mindspore.cn/mindinsight/docs/zh-CN/master/summary_record.html#方式二-结合summary算子和summarycollector自定义收集网络中的数据>`_ 记录网络的数据外,SummaryRecord还支持通过 `自定义回调函数和自定义训练循环 <https://www.mindspore.cn/mindinsight/docs/zh-CN/master/summary_record.html#方式三-自定义callback记录数据>`_ 记录数据。
|
||||
|
||||
.. note::
|
||||
- 使用SummaryRecord时,需要将代码放置到 `if __name__ == "__main__"` 中运行。
|
||||
|
|
|
@ -398,7 +398,7 @@ Other Operators
|
|||
* - mindspore.ops.shape_mul
|
||||
- The input of shape_mul must be shape multiply elements in tuple(shape).
|
||||
* - mindspore.ops.stop_gradient
|
||||
- Disable update during back propagation. (`stop_gradient <https://www.mindspore.cn/tutorials/en/master/beginner/autograd.html#stopping-gradient>`_)
|
||||
- Disable update during back propagation. (`stop_gradient <https://www.mindspore.cn/tutorials/en/master/beginner/autograd.html#stopping-gradient-calculation>`_)
|
||||
* - mindspore.ops.string_concat
|
||||
- Concatenate two strings.
|
||||
* - mindspore.ops.string_eq
|
||||
|
|
|
@ -85,7 +85,7 @@ name: Softmax-7, DataType: 43, Size: 40, Shape: [1 10], Data:
|
|||
```
|
||||
|
||||
outputFile 指定micro代码生成目录,当前脚本目录下将生成source_code目录,其中包含了可编译构建的mnist分类模型的代码src和benchmark用例。
|
||||
> 关于codegen的更多使用命令说明,可参见[codegen使用说明](https://www.mindspore.cn/lite/docs/zh-CN/master/use/micro.html#id4)。
|
||||
> 关于codegen的更多使用命令说明,可参见[codegen使用说明](https://www.mindspore.cn/lite/docs/zh-CN/master/use/micro.html#自动生成的代码部署时依赖的头文件和lib的目录结构)。
|
||||
|
||||
### 部署应用
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
This file contains contains basic classes that help users do flexible dataset loading.
|
||||
You can define your own dataset loading class, and use GeneratorDataset to help load data.
|
||||
You can refer to the
|
||||
`tutorial <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/custom.html#loading-user-defined-dataset>`
|
||||
`tutorial <https://www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/custom.html>`_
|
||||
to help define your dataset loading.
|
||||
After declaring the dataset object, you can further apply dataset operations
|
||||
(e.g. filter, skip, concat, map, batch) on it.
|
||||
|
|
|
@ -30,10 +30,6 @@ class ImageNetToMR:
|
|||
"""
|
||||
A class to transform from imagenet to MindRecord.
|
||||
|
||||
Note:
|
||||
For details about Examples, please refer to `Converting the ImageNet Dataset <https://
|
||||
www.mindspore.cn/tutorials/zh-CN/master/advanced/dataset/record.html#converting-the-imagenet-dataset>`_.
|
||||
|
||||
Args:
|
||||
map_file (str): The map file that indicates label. The map file content should be like this:
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ class ReduceOp:
|
|||
The user needs to preset
|
||||
communication environment variables before running the following example, please check the details on the
|
||||
official website of `MindSpore \
|
||||
<https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#communication-operators>`_.
|
||||
<https://www.mindspore.cn/docs/en/master/api_python/mindspore.ops.html#communication-operator>`_.
|
||||
|
||||
Supported Platforms:
|
||||
``Ascend`` ``GPU``
|
||||
|
@ -111,7 +111,7 @@ class AllReduce(PrimitiveWithInfer):
|
|||
The tensors must have the same shape and format in all processes of the collection. The user needs to preset
|
||||
communication environment variables before running the following example, please check the details on the
|
||||
official website of `MindSpore \
|
||||
<https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#communication-operators>`_.
|
||||
<https://www.mindspore.cn/docs/en/master/api_python/mindspore.ops.html#communication-operator>`_.
|
||||
|
||||
Args:
|
||||
op (str): Specifies an operation used for element-wise reductions,
|
||||
|
@ -190,7 +190,7 @@ class AllGather(PrimitiveWithInfer):
|
|||
The tensors must have the same shape and format in all processes of the collection. The user needs to preset
|
||||
communication environment variables before running the following example, please check the details on the
|
||||
official website of `MindSpore \
|
||||
<https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#communication-operators>`_.
|
||||
<https://www.mindspore.cn/docs/en/master/api_python/mindspore.ops.html#communication-operator>`_.
|
||||
|
||||
Args:
|
||||
group (str): The communication group to work on. Default: "GlobalComm.WORLD_COMM_GROUP".
|
||||
|
@ -396,7 +396,7 @@ class ReduceScatter(PrimitiveWithInfer):
|
|||
The tensors must have the same shape and format in all processes of the collection. The user needs to preset
|
||||
communication environment variables before running the following example, please check the details on the
|
||||
official website of `MindSpore \
|
||||
<https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#communication-operators>`_.
|
||||
<https://www.mindspore.cn/docs/en/master/api_python/mindspore.ops.html#communication-operator>`_.
|
||||
|
||||
Args:
|
||||
op (str): Specifies an operation used for element-wise reductions,
|
||||
|
@ -530,7 +530,7 @@ class Broadcast(PrimitiveWithInfer):
|
|||
The tensors must have the same shape and format in all processes of the collection. The user needs to preset
|
||||
communication environment variables before running the following example, please check the details on the
|
||||
official website of `MindSpore \
|
||||
<https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#communication-operators>`_.
|
||||
<https://www.mindspore.cn/docs/en/master/api_python/mindspore.ops.html#communication-operator>`_.
|
||||
|
||||
Args:
|
||||
root_rank (int): Source rank. Required in all processes except the one
|
||||
|
@ -667,11 +667,11 @@ class NeighborExchange(Primitive):
|
|||
The user needs to preset
|
||||
communication environment variables before running the following example, please check the details on the
|
||||
official website of `MindSpore \
|
||||
<https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#communication-operators>`_.
|
||||
<https://www.mindspore.cn/docs/en/master/api_python/mindspore.ops.html#communication-operator>`_.
|
||||
|
||||
This operator requires a full-mesh network topology, each device has the same vlan id, and the ip & mask are
|
||||
in the same subnet, please check the `details \
|
||||
<https://www.mindspore.cn/tutorials/experts/zh-CN/master/parallel/communicate_ops.html#id2>`_.
|
||||
<https://www.mindspore.cn/tutorials/experts/zh-CN/master/parallel/communicate_ops.html#注意事项>`_.
|
||||
|
||||
Args:
|
||||
send_rank_ids (list(int)): Ranks which the data is sent to.
|
||||
|
@ -743,11 +743,11 @@ class AlltoAll(PrimitiveWithInfer):
|
|||
The tensors must have the same shape and format in all processes of the collection. The user needs to preset
|
||||
communication environment variables before running the following example, please check the details on the
|
||||
official website of `MindSpore \
|
||||
<https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#communication-operators>`_.
|
||||
<https://www.mindspore.cn/docs/en/master/api_python/mindspore.ops.html#communication-operator>`_.
|
||||
|
||||
This operator requires a full-mesh network topology, each device has the same vlan id, and the ip & mask are
|
||||
in the same subnet, please check the `details \
|
||||
<https://www.mindspore.cn/tutorials/experts/zh-CN/master/parallel/communicate_ops.html#id2>`_.
|
||||
<https://www.mindspore.cn/tutorials/experts/zh-CN/master/parallel/communicate_ops.html#注意事项>`_.
|
||||
|
||||
Args:
|
||||
split_count (int): On each process, divide blocks into split_count number.
|
||||
|
@ -834,11 +834,11 @@ class NeighborExchangeV2(Primitive):
|
|||
The user needs to preset
|
||||
communication environment variables before running the following example, please check the details on the
|
||||
official website of `MindSpore \
|
||||
<https://www.mindspore.cn/docs/zh-CN/master/api_python/mindspore.ops.html#communication-operators>`_.
|
||||
<https://www.mindspore.cn/docs/en/master/api_python/mindspore.ops.html#communication-operator>`_.
|
||||
|
||||
This operator requires a full-mesh network topology, each device has the same vlan id, and the ip & mask are
|
||||
in the same subnet, please check the `details \
|
||||
<https://www.mindspore.cn/tutorials/experts/zh-CN/master/parallel/communicate_ops.html#id2>`_.
|
||||
<https://www.mindspore.cn/tutorials/experts/zh-CN/master/parallel/communicate_ops.html#注意事项>`_.
|
||||
|
||||
Args:
|
||||
send_rank_ids (list(int)): Ranks which the data is sent to. 8 rank_ids represents 8 directions, if one
|
||||
|
|
Loading…
Reference in New Issue