From 51c7bd1b29e0a785812bf99ab8487e5716205777 Mon Sep 17 00:00:00 2001 From: xumengjuan1 Date: Tue, 7 Dec 2021 17:45:17 +0800 Subject: [PATCH] add nn_ops_api name --- docs/api/api_python/mindspore.nn.rst | 27 +++++++++++++++++++++++++++ docs/api/api_python/mindspore.ops.rst | 9 +++++++++ 2 files changed, 36 insertions(+) diff --git a/docs/api/api_python/mindspore.nn.rst b/docs/api/api_python/mindspore.nn.rst index 0d1d284fb34..d97e98314a0 100644 --- a/docs/api/api_python/mindspore.nn.rst +++ b/docs/api/api_python/mindspore.nn.rst @@ -26,9 +26,28 @@ Non-linear Activations mindspore.nn.FastGelu mindspore.nn.HSwish + mindspore.nn.LeakyReLU mindspore.nn.ReLU mindspore.nn.ELU mindspore.nn.GELU + mindspore.nn.Softmax + +Utilities +--------- + +.. cnmsplatformautosummary:: + :toctree: nn + + mindspore.nn.Flatten + mindspore.nn.Tril + +Loss Functions +-------------- + +.. cnmsplatformautosummary:: + :toctree: nn + + mindspore.nn.SmoothL1Loss Optimizer Functions ------------------- @@ -66,6 +85,14 @@ Wrapper Functions mindspore.nn.WithEvalCell mindspore.nn.WithLossCell +Math Functions +----------------- + +.. cnmsplatformautosummary:: + :toctree: nn + + mindspore.nn.Moments + Metrics -------- diff --git a/docs/api/api_python/mindspore.ops.rst b/docs/api/api_python/mindspore.ops.rst index e3c176e462c..80f5bcbfb1d 100644 --- a/docs/api/api_python/mindspore.ops.rst +++ b/docs/api/api_python/mindspore.ops.rst @@ -10,8 +10,11 @@ Neural Network Operators .. cnmsplatformautosummary:: :toctree: ops + mindspore.ops.BiasAdd + mindspore.ops.Elu mindspore.ops.GeLU mindspore.ops.L2Loss + mindspore.ops.L2Normalize mindspore.ops.PReLU mindspore.ops.ReLUV2 mindspore.ops.SeLU @@ -28,6 +31,8 @@ Math Operators mindspore.ops.Div mindspore.ops.Eps mindspore.ops.Erf + mindspore.ops.Greater + mindspore.ops.Inv mindspore.ops.LessEqual mindspore.ops.Log mindspore.ops.MatMul @@ -41,9 +46,13 @@ Array Operators .. cnmsplatformautosummary:: :toctree: ops + mindspore.ops.Eye + mindspore.ops.Fill + mindspore.ops.Gather mindspore.ops.OnesLike mindspore.ops.Reshape mindspore.ops.Size + mindspore.ops.Squeeze mindspore.ops.Tile mindspore.ops.ZerosLike