提交 484a1d71 编写于 作者: L lujun 提交者: Cheerego

cherry pick gen_doc.py for dygraph, test=release/1.5 (#981)

上级 70bab181
...@@ -12,7 +12,6 @@ BackwardStrategy ...@@ -12,7 +12,6 @@ BackwardStrategy
.. autoclass:: paddle.fluid.dygraph.BackwardStrategy .. autoclass:: paddle.fluid.dygraph.BackwardStrategy
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_BatchNorm: .. _api_fluid_dygraph_BatchNorm:
...@@ -22,7 +21,6 @@ BatchNorm ...@@ -22,7 +21,6 @@ BatchNorm
.. autoclass:: paddle.fluid.dygraph.BatchNorm .. autoclass:: paddle.fluid.dygraph.BatchNorm
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_BilinearTensorProduct: .. _api_fluid_dygraph_BilinearTensorProduct:
...@@ -32,7 +30,6 @@ BilinearTensorProduct ...@@ -32,7 +30,6 @@ BilinearTensorProduct
.. autoclass:: paddle.fluid.dygraph.BilinearTensorProduct .. autoclass:: paddle.fluid.dygraph.BilinearTensorProduct
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_Conv2D: .. _api_fluid_dygraph_Conv2D:
...@@ -42,7 +39,6 @@ Conv2D ...@@ -42,7 +39,6 @@ Conv2D
.. autoclass:: paddle.fluid.dygraph.Conv2D .. autoclass:: paddle.fluid.dygraph.Conv2D
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_Conv2DTranspose: .. _api_fluid_dygraph_Conv2DTranspose:
...@@ -52,7 +48,6 @@ Conv2DTranspose ...@@ -52,7 +48,6 @@ Conv2DTranspose
.. autoclass:: paddle.fluid.dygraph.Conv2DTranspose .. autoclass:: paddle.fluid.dygraph.Conv2DTranspose
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_Conv3D: .. _api_fluid_dygraph_Conv3D:
...@@ -62,7 +57,6 @@ Conv3D ...@@ -62,7 +57,6 @@ Conv3D
.. autoclass:: paddle.fluid.dygraph.Conv3D .. autoclass:: paddle.fluid.dygraph.Conv3D
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_Conv3DTranspose: .. _api_fluid_dygraph_Conv3DTranspose:
...@@ -72,7 +66,6 @@ Conv3DTranspose ...@@ -72,7 +66,6 @@ Conv3DTranspose
.. autoclass:: paddle.fluid.dygraph.Conv3DTranspose .. autoclass:: paddle.fluid.dygraph.Conv3DTranspose
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_CosineDecay: .. _api_fluid_dygraph_CosineDecay:
...@@ -82,7 +75,6 @@ CosineDecay ...@@ -82,7 +75,6 @@ CosineDecay
.. autoclass:: paddle.fluid.dygraph.CosineDecay .. autoclass:: paddle.fluid.dygraph.CosineDecay
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_Embedding: .. _api_fluid_dygraph_Embedding:
...@@ -92,7 +84,6 @@ Embedding ...@@ -92,7 +84,6 @@ Embedding
.. autoclass:: paddle.fluid.dygraph.Embedding .. autoclass:: paddle.fluid.dygraph.Embedding
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_enabled: .. _api_fluid_dygraph_enabled:
...@@ -110,7 +101,6 @@ ExponentialDecay ...@@ -110,7 +101,6 @@ ExponentialDecay
.. autoclass:: paddle.fluid.dygraph.ExponentialDecay .. autoclass:: paddle.fluid.dygraph.ExponentialDecay
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_FC: .. _api_fluid_dygraph_FC:
...@@ -120,7 +110,6 @@ FC ...@@ -120,7 +110,6 @@ FC
.. autoclass:: paddle.fluid.dygraph.FC .. autoclass:: paddle.fluid.dygraph.FC
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_GroupNorm: .. _api_fluid_dygraph_GroupNorm:
...@@ -130,7 +119,6 @@ GroupNorm ...@@ -130,7 +119,6 @@ GroupNorm
.. autoclass:: paddle.fluid.dygraph.GroupNorm .. autoclass:: paddle.fluid.dygraph.GroupNorm
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_GRUUnit: .. _api_fluid_dygraph_GRUUnit:
...@@ -140,7 +128,6 @@ GRUUnit ...@@ -140,7 +128,6 @@ GRUUnit
.. autoclass:: paddle.fluid.dygraph.GRUUnit .. autoclass:: paddle.fluid.dygraph.GRUUnit
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_guard: .. _api_fluid_dygraph_guard:
...@@ -158,7 +145,6 @@ InverseTimeDecay ...@@ -158,7 +145,6 @@ InverseTimeDecay
.. autoclass:: paddle.fluid.dygraph.InverseTimeDecay .. autoclass:: paddle.fluid.dygraph.InverseTimeDecay
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_Layer: .. _api_fluid_dygraph_Layer:
...@@ -168,7 +154,6 @@ Layer ...@@ -168,7 +154,6 @@ Layer
.. autoclass:: paddle.fluid.dygraph.Layer .. autoclass:: paddle.fluid.dygraph.Layer
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_LayerNorm: .. _api_fluid_dygraph_LayerNorm:
...@@ -178,7 +163,6 @@ LayerNorm ...@@ -178,7 +163,6 @@ LayerNorm
.. autoclass:: paddle.fluid.dygraph.LayerNorm .. autoclass:: paddle.fluid.dygraph.LayerNorm
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_load_persistables: .. _api_fluid_dygraph_load_persistables:
...@@ -196,7 +180,6 @@ NaturalExpDecay ...@@ -196,7 +180,6 @@ NaturalExpDecay
.. autoclass:: paddle.fluid.dygraph.NaturalExpDecay .. autoclass:: paddle.fluid.dygraph.NaturalExpDecay
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_NCE: .. _api_fluid_dygraph_NCE:
...@@ -206,7 +189,6 @@ NCE ...@@ -206,7 +189,6 @@ NCE
.. autoclass:: paddle.fluid.dygraph.NCE .. autoclass:: paddle.fluid.dygraph.NCE
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_no_grad: .. _api_fluid_dygraph_no_grad:
...@@ -224,7 +206,6 @@ NoamDecay ...@@ -224,7 +206,6 @@ NoamDecay
.. autoclass:: paddle.fluid.dygraph.NoamDecay .. autoclass:: paddle.fluid.dygraph.NoamDecay
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_not_support: .. _api_fluid_dygraph_not_support:
...@@ -242,7 +223,6 @@ PiecewiseDecay ...@@ -242,7 +223,6 @@ PiecewiseDecay
.. autoclass:: paddle.fluid.dygraph.PiecewiseDecay .. autoclass:: paddle.fluid.dygraph.PiecewiseDecay
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_PolynomialDecay: .. _api_fluid_dygraph_PolynomialDecay:
...@@ -252,7 +232,6 @@ PolynomialDecay ...@@ -252,7 +232,6 @@ PolynomialDecay
.. autoclass:: paddle.fluid.dygraph.PolynomialDecay .. autoclass:: paddle.fluid.dygraph.PolynomialDecay
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_Pool2D: .. _api_fluid_dygraph_Pool2D:
...@@ -262,7 +241,6 @@ Pool2D ...@@ -262,7 +241,6 @@ Pool2D
.. autoclass:: paddle.fluid.dygraph.Pool2D .. autoclass:: paddle.fluid.dygraph.Pool2D
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_PRelu: .. _api_fluid_dygraph_PRelu:
...@@ -272,7 +250,6 @@ PRelu ...@@ -272,7 +250,6 @@ PRelu
.. autoclass:: paddle.fluid.dygraph.PRelu .. autoclass:: paddle.fluid.dygraph.PRelu
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_prepare_context: .. _api_fluid_dygraph_prepare_context:
...@@ -298,7 +275,6 @@ SpectralNorm ...@@ -298,7 +275,6 @@ SpectralNorm
.. autoclass:: paddle.fluid.dygraph.SpectralNorm .. autoclass:: paddle.fluid.dygraph.SpectralNorm
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_start_gperf_profiler: .. _api_fluid_dygraph_start_gperf_profiler:
...@@ -332,7 +308,6 @@ Tracer ...@@ -332,7 +308,6 @@ Tracer
.. autoclass:: paddle.fluid.dygraph.Tracer .. autoclass:: paddle.fluid.dygraph.Tracer
:members: :members:
:inherited-members:
:noindex: :noindex:
.. _api_fluid_dygraph_TreeConv: .. _api_fluid_dygraph_TreeConv:
...@@ -342,6 +317,5 @@ TreeConv ...@@ -342,6 +317,5 @@ TreeConv
.. autoclass:: paddle.fluid.dygraph.TreeConv .. autoclass:: paddle.fluid.dygraph.TreeConv
:members: :members:
:inherited-members:
:noindex: :noindex:
...@@ -89,7 +89,14 @@ class DocGenerator(object): ...@@ -89,7 +89,14 @@ class DocGenerator(object):
def print_class(self, name): def print_class(self, name):
self._print_ref_(name) self._print_ref_(name)
self._print_header_(name, dot='-', is_title=False) self._print_header_(name, dot='-', is_title=False)
self.stream.write('''.. autoclass:: paddle.{0}.{1} if "fluid.dygraph" in self.module_prefix:
self.stream.write('''.. autoclass:: paddle.{0}.{1}
:members:
:noindex:
'''.format(self.module_prefix, name))
else:
self.stream.write('''.. autoclass:: paddle.{0}.{1}
:members: :members:
:inherited-members: :inherited-members:
:noindex: :noindex:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册