modify code formats in rst files

This commit is contained in:
lvmingfu 2022-03-10 17:48:35 +08:00
parent dc9e33ce6e
commit cc494030dc
5 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@
表示该参数是否开启缓存功能。
.. py:method:: cache_shape
.. py:method:: cache_shape
:property:
如果使用缓存则返回对应参数的缓存shape。

View File

@ -19,7 +19,7 @@ mindspore.nn.Fbeta
内部评估结果清零。
.. py:method::eval(average=False)
.. py:method:: eval(average=False)
计算fbeta结果。

View File

@ -12,7 +12,7 @@ mindspore.nn.Lamb
参数更新如下:
.. math::
.. math::
\begin{gather*}
m_t = \beta_1 m_{t - 1}+ (1 - \beta_1)g_t\\
v_t = \beta_2 v_{t - 1} + (1 - \beta_2)g_t^2\\

View File

@ -1,7 +1,7 @@
mindspore.nn.Precision
======================
.. py:class:: mindspore.nn.Precision(eval_type='classification')
.. py:class:: mindspore.nn.Precision(eval_type='classification')
计算数据分类的精度,包括单标签场景和多标签场景。

View File

@ -1,7 +1,7 @@
mindspore.nn.names
==================
.. py:function:: mindspore.nn.names()
.. py:function:: mindspore.nn.names()
获取所有metric的名称。