diff --git a/docs/mindspore/api/source_en/api_python/mindspore.nn.rst b/docs/mindspore/api/source_en/api_python/mindspore.nn.rst index 53e40346af722adfa45e2e3dfe28bbde0fec037d..125c035cf3492f26d888f1874c08741581b6f2de 100644 --- a/docs/mindspore/api/source_en/api_python/mindspore.nn.rst +++ b/docs/mindspore/api/source_en/api_python/mindspore.nn.rst @@ -1,14 +1,14 @@ mindspore.nn ============= -神经网络Cell。 +Neural Network Cell -用于构建神经网络中的预定义构建块或计算单元。 +For building predefined building blocks or computational units in neural networks. Compared with the previous version, the added, deleted and supported platforms change information of `mindspore.nn` operators in MindSpore, please refer to the link ``_. -基本构成单元 ------------- +Basic Building Block +-------------------- .. msplatformautosummary:: :toctree: nn @@ -20,8 +20,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.nn.LossBase mindspore.nn.Optimizer -容器 ------------ +Container +--------- .. msplatformautosummary:: :toctree: nn @@ -29,8 +29,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.nn.CellList mindspore.nn.SequentialCell -封装层 ------------ +Encapsulation Layer +------------------- .. msplatformautosummary:: :toctree: nn @@ -50,8 +50,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.nn.WithGradCell mindspore.nn.WithLossCell -卷积神经网络层 --------------------- +Convolutional Neural Network Layer +---------------------------------- .. msplatformautosummary:: :toctree: nn @@ -64,8 +64,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.nn.Conv3dTranspose mindspore.nn.Unfold -循环神经网络层 ------------------ +Recurrent Neural Network Layer +------------------------------ .. msplatformautosummary:: :toctree: nn @@ -79,8 +79,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.nn.LSTM mindspore.nn.LSTMCell -嵌入层 ------------------ +Embedding Layer +--------------- .. msplatformautosummary:: :toctree: nn @@ -91,8 +91,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.nn.EmbeddingLookup mindspore.nn.MultiFieldEmbeddingLookup -非线性激活函数层 --------------- +Nonlinear Activation Function Layer +----------------------------------- .. msplatformautosummary:: :toctree: nn @@ -117,8 +117,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.nn.SoftShrink mindspore.nn.Tanh -线性层 ------------------ +Linear Layer +------------ .. msplatformautosummary:: :toctree: nn @@ -127,8 +127,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.nn.Dense -Dropout层 ------------------ +Dropout Layer +------------- .. msplatformautosummary:: :toctree: nn @@ -137,8 +137,8 @@ Dropout层 mindspore.nn.Dropout -归一化层 ---------- +Normalization Layer +------------------- .. msplatformautosummary:: :toctree: nn @@ -154,8 +154,8 @@ Dropout层 mindspore.nn.LayerNorm mindspore.nn.SyncBatchNorm -池化层 --------------- +Pooling Layer +------------- .. msplatformautosummary:: :toctree: nn @@ -167,8 +167,8 @@ Dropout层 mindspore.nn.MaxPool1d mindspore.nn.MaxPool2d -填充层 --------------- +Filling Layer +------------- .. msplatformautosummary:: :toctree: nn @@ -177,8 +177,8 @@ Dropout层 mindspore.nn.Pad -损失函数 --------- +Loss Function +------------- .. msplatformautosummary:: :toctree: nn @@ -199,8 +199,8 @@ Dropout层 mindspore.nn.SoftMarginLoss mindspore.nn.SoftmaxCrossEntropyWithLogits -优化器 -------- +Optimizer +--------- .. msplatformautosummary:: :toctree: nn @@ -225,8 +225,8 @@ Dropout层 mindspore.nn.SGD mindspore.nn.thor -评估指标 --------- +Evaluation Metrics +------------------ .. msplatformautosummary:: :toctree: nn @@ -261,11 +261,11 @@ Dropout层 mindspore.nn.Top5CategoricalAccuracy mindspore.nn.TopKCategoricalAccuracy -动态学习率 ------------ +Dynamic Learning Rate +--------------------- -LearningRateSchedule类 -^^^^^^^^^^^^^^^^^^^^^^^ +LearningRateSchedule Class +^^^^^^^^^^^^^^^^^^^^^^^^^^ The dynamic learning rates in this module are all subclasses of LearningRateSchedule. Pass the instance of LearningRateSchedule to an optimizer. During the training process, the optimizer calls the instance taking current step @@ -293,8 +293,8 @@ as input to get the current learning rate. mindspore.nn.PolynomialDecayLR mindspore.nn.WarmUpLR -Dynamic LR函数 -^^^^^^^^^^^^^^ +Dynamic LR Function +^^^^^^^^^^^^^^^^^^^ The dynamic learning rates in this module are all functions. Call the function and pass the result to an optimizer. During the training process, the optimizer takes result[current step] as current learning rate. @@ -325,8 +325,8 @@ During the training process, the optimizer takes result[current step] as current mindspore.nn.polynomial_decay_lr mindspore.nn.warmup_lr -稀疏层 -------------- +Sparse Layer +------------ .. msplatformautosummary:: :toctree: nn @@ -336,8 +336,8 @@ During the training process, the optimizer takes result[current step] as current mindspore.nn.SparseTensorDenseMatmul mindspore.nn.SparseToDense -图像处理层 ------------ +Image Processing Layer +---------------------- .. msplatformautosummary:: :toctree: nn @@ -351,8 +351,8 @@ During the training process, the optimizer takes result[current step] as current mindspore.nn.ResizeBilinear mindspore.nn.SSIM -矩阵处理 ------------ +Matrix Processing +----------------- .. msplatformautosummary:: :toctree: nn @@ -363,7 +363,7 @@ During the training process, the optimizer takes result[current step] as current mindspore.nn.MatrixDiagPart mindspore.nn.MatrixSetDiag -工具 +Tools ----- .. msplatformautosummary:: @@ -382,8 +382,8 @@ During the training process, the optimizer takes result[current step] as current mindspore.nn.Tril mindspore.nn.Triu -数学运算 ----------- +Mathematical Operations +----------------------- .. msplatformautosummary:: :toctree: nn @@ -394,8 +394,8 @@ During the training process, the optimizer takes result[current step] as current mindspore.nn.Moments mindspore.nn.ReduceLogSumExp -梯度 ------ +Gradient +-------- .. msplatformautosummary:: :toctree: nn diff --git a/docs/mindspore/api/source_en/api_python/mindspore.ops.rst b/docs/mindspore/api/source_en/api_python/mindspore.ops.rst index 20d3b88f647634e883aa4acd87b7ac273f3ebe0a..d7853b5ccf6988f945d32beb32fbbb8b52ee6337 100644 --- a/docs/mindspore/api/source_en/api_python/mindspore.ops.rst +++ b/docs/mindspore/api/source_en/api_python/mindspore.ops.rst @@ -1,7 +1,7 @@ mindspore.ops ============= -可用于Cell的构造函数的算子。 +operators that can be used for constructor function of Cell .. code-block:: @@ -9,8 +9,8 @@ mindspore.ops Compared with the previous version, the added, deleted and supported platforms change information of `mindspore.ops` operators in MindSpore, please refer to the link ``_. -算子原语 ----------- +Operator Primitives +------------------- .. autosummary:: :toctree: ops @@ -21,8 +21,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.PrimitiveWithCheck mindspore.ops.PrimitiveWithInfer -装饰器 --------- +Decorators +---------- .. autosummary:: :toctree: ops @@ -35,11 +35,11 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.op_info_register mindspore.ops.prim_attr_register -神经网络层算子 ----------------- +Neural Network Layer Operators +------------------------------ -神经网络 -^^^^^^^^^^ +Neural Network +^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -78,8 +78,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.ResizeNearestNeighbor mindspore.ops.ResizeBilinear -损失函数 -^^^^^^^^^^ +Loss Function +^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -99,8 +99,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.SoftmaxCrossEntropyWithLogits mindspore.ops.SparseSoftmaxCrossEntropyWithLogits -激活函数 -^^^^^^^^^^ +Activation Function +^^^^^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -127,8 +127,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.Softsign mindspore.ops.Tanh -优化器 -^^^^^^^^^^ +Optimizer +^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -165,8 +165,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.SparseApplyFtrl mindspore.ops.SparseApplyFtrlV2 -距离函数 -^^^^^^^^^^ +Distance Function +^^^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -177,8 +177,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.EditDistance mindspore.ops.LpNorm -采样算子 -^^^^^^^^^^ +Sampling Operator +^^^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -189,8 +189,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.LogUniformCandidateSampler mindspore.ops.UniformCandidateSampler -图像处理 -^^^^^^^^^^ +Image Processing +^^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -207,8 +207,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.NMSWithMask mindspore.ops.ROIAlign -文本处理 -^^^^^^^^^^ +Text Processing +^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -217,11 +217,11 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.NoRepeatNGram -数学运算算子 ----------------- +Mathematical Operators +---------------------- -逐元素运算 -^^^^^^^^^^^^^ +Element-by-Element Operation +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -293,8 +293,8 @@ Compared with the previous version, the added, deleted and supported platforms c mindspore.ops.Xlogy -Reduction算子 -^^^^^^^^^^^^^ +Reduction Operator +^^^^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -313,8 +313,8 @@ Reduction算子 mindspore.ops.ReduceProd mindspore.ops.ReduceSum -比较算子 -^^^^^^^^^^^^^ +Comparison Operator +^^^^^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -341,8 +341,8 @@ Reduction算子 mindspore.ops.SameTypeShape mindspore.ops.TopK -线性代数算子 -^^^^^^^^^^^^^ +Linear Algebraic Operator +^^^^^^^^^^^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -355,11 +355,11 @@ Reduction算子 mindspore.ops.MatMul mindspore.ops.MatrixInverse -Tensor操作算子 ----------------- +Tensor Operation Opertor +------------------------ -Tensor创建 -^^^^^^^^^^^^^ +Tensor Construction +^^^^^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -376,8 +376,8 @@ Tensor创建 mindspore.ops.Zeros mindspore.ops.ZerosLike -随机生成算子 -^^^^^^^^^^^^^^^^ +Random Generation Operator +^^^^^^^^^^^^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -395,8 +395,8 @@ Tensor创建 mindspore.ops.UniformInt mindspore.ops.UniformReal -Array操作 -^^^^^^^^^^^^^^^^ +Array Operation +^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -466,8 +466,8 @@ Array操作 mindspore.ops.UnsortedSegmentSum mindspore.ops.Unstack -类型转换 -^^^^^^^^^^^^^^^^ +Type Conversion +^^^^^^^^^^^^^^^ .. msplatformautosummary:: :toctree: ops @@ -479,8 +479,8 @@ Array操作 mindspore.ops.ScalarToTensor mindspore.ops.TupleToArray -Parameter操作算子 --------------------- +Parameter Operation Operator +---------------------------- .. msplatformautosummary:: :toctree: ops @@ -502,8 +502,8 @@ Parameter操作算子 mindspore.ops.ScatterSub mindspore.ops.ScatterUpdate -数据操作算子 ----------------- +Data Operation Operator +----------------------- .. msplatformautosummary:: :toctree: ops @@ -512,8 +512,8 @@ Parameter操作算子 mindspore.ops.GetNext -通信算子 ----------------- +Communication Operator +---------------------- Note that the APIs in the following list need to preset communication environment variables. For the Ascend devices, users need to prepare the rank table, set rank_id and device_id. Please see the `Ascend tutorial \ @@ -536,8 +536,8 @@ For the GPU device, users need to prepare the host file and mpi, please see the mindspore.ops.ReduceOp mindspore.ops.ReduceScatter -调试算子 ----------------- +Debugging Operator +------------------ .. msplatformautosummary:: :toctree: ops @@ -550,8 +550,8 @@ For the GPU device, users need to prepare the host file and mpi, please see the mindspore.ops.TensorSummary mindspore.ops.Print -稀疏算子 ----------------- +Sparse Operator +--------------- .. msplatformautosummary:: :toctree: ops @@ -561,8 +561,8 @@ For the GPU device, users need to prepare the host file and mpi, please see the mindspore.ops.SparseTensorDenseMatmul mindspore.ops.SparseToDense -其他算子 ----------------- +Other Operators +--------------- .. msplatformautosummary:: :toctree: ops @@ -574,8 +574,8 @@ For the GPU device, users need to prepare the host file and mpi, please see the mindspore.ops.InsertGradientOf mindspore.ops.Partial -算子信息注册 -------------- +Operator Information Registration +--------------------------------- .. autosummary:: :toctree: ops @@ -588,8 +588,8 @@ For the GPU device, users need to prepare the host file and mpi, please see the mindspore.ops.TBERegOp mindspore.ops.get_vm_impl_fn -自定义算子 -------------- +Customizing Operator +-------------------- .. autosummary:: :toctree: ops