Skip to content

Commit

Permalink
Update FluidDoc of develop on 08/23 (PaddlePaddle#1121)
Browse files Browse the repository at this point in the history
* test=document_preview

* 0823 update FluidDoc,test=document_preview

* add two files
  • Loading branch information
zq19 authored Aug 26, 2019
1 parent 14c25ab commit 6ac2199
Show file tree
Hide file tree
Showing 62 changed files with 429 additions and 33 deletions.
26 changes: 26 additions & 0 deletions doc/fluid/api/fluid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ fluid
.. toctree::
:maxdepth: 1

fluid/append_backward.rst
fluid/backward.rst
fluid/BuildStrategy.rst
fluid/clip.rst
fluid/CompiledProgram.rst
fluid/contrib.rst
fluid/cpu_places.rst
fluid/CPUPlace.rst
fluid/create_lod_tensor.rst
Expand All @@ -19,22 +23,44 @@ fluid
fluid/DataFeeder.rst
fluid/default_main_program.rst
fluid/default_startup_program.rst
fluid/DistMultiTrainer.rst
fluid/DistributeTranspiler.rst
fluid/DistributeTranspilerConfig.rst
fluid/dygraph.rst
fluid/dygraph_grad_clip.rst
fluid/ExecutionStrategy.rst
fluid/Executor.rst
fluid/global_scope.rst
fluid/gradients.rst
fluid/HashName.rst
fluid/in_dygraph_mode.rst
fluid/initializer.rst
fluid/install_check.rst
fluid/io.rst
fluid/is_compiled_with_cuda.rst
fluid/layers.rst
fluid/learning_rate_decay.rst
fluid/LoDTensor.rst
fluid/LoDTensorArray.rst
fluid/memory_optimize.rst
fluid/MultiTrainer.rst
fluid/name_scope.rst
fluid/nets.rst
fluid/optimizer.rst
fluid/ParallelExecutor.rst
fluid/ParamAttr.rst
fluid/PipelineTrainer.rst
fluid/profiler.rst
fluid/Program.rst
fluid/program_guard.rst
fluid/recordio_writer.rst
fluid/regularizer.rst
fluid/release_memory.rst
fluid/RoundRobin.rst
fluid/Scope.rst
fluid/scope_guard.rst
fluid/Tensor.rst
fluid/TrainerDesc.rst
fluid/transpiler.rst
fluid/unique_name.rst
fluid/WeightNormParamAttr.rst
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/DistMultiTrainer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/HashName.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/MultiTrainer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/PipelineTrainer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/RoundRobin.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/Scope.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/TrainerDesc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/append_backward.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/backward.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/clip.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/dygraph.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/dygraph_grad_clip.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/initializer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/install_check.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/io.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
11 changes: 11 additions & 0 deletions doc/fluid/api/fluid/is_compiled_with_cuda.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_is_compiled_with_cuda:

is_compiled_with_cuda
---------------------

.. autofunction:: paddle.fluid.is_compiled_with_cuda
:noindex:

3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/layers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/learning_rate_decay.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/nets.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/optimizer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/profiler.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/recordio_writer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/regularizer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/transpiler.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
3 changes: 3 additions & 0 deletions doc/fluid/api/fluid/unique_name.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
4 changes: 2 additions & 2 deletions doc/fluid/api/gen_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def print_item(self, name):
self.print_method(name)
else:
self.stream.close()
path = os.getcwd()+"/fluid/"+name+".rst"
os.remove(path)
#path = os.getcwd()+"/fluid/"+name+".rst"
#os.remove(path)

def print_class(self, name):
self._print_ref_(name)
Expand Down
2 changes: 1 addition & 1 deletion doc/fluid/api/index_en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ API Reference
.. toctree::
:maxdepth: 1


../flags_en.rst
../api_guides/index_en.rst
fluid.rst
average.rst
Expand Down
13 changes: 13 additions & 0 deletions doc/fluid/api/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,25 @@ fluid.io
.. toctree::
:maxdepth: 1

io/batch.rst
io/buffered.rst
io/cache.rst
io/chain.rst
io/compose.rst
io/ComposeNotAligned.rst
io/Fake.rst
io/firstn.rst
io/load_inference_model.rst
io/load_params.rst
io/load_persistables.rst
io/load_vars.rst
io/map_readers.rst
io/multiprocess_reader.rst
io/PipeReader.rst
io/PyReader.rst
io/save_inference_model.rst
io/save_params.rst
io/save_persistables.rst
io/save_vars.rst
io/shuffle.rst
io/xmap_readers.rst
13 changes: 13 additions & 0 deletions doc/fluid/api/io/ComposeNotAligned.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_io_ComposeNotAligned:

ComposeNotAligned
-----------------

.. autoclass:: paddle.fluid.io.ComposeNotAligned
:members:
:inherited-members:
:noindex:

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_layers_Preprocessor:
.. _api_fluid_io_Fake:

Preprocessor
------------
Fake
----

.. autoclass:: paddle.fluid.layers.Preprocessor
.. autoclass:: paddle.fluid.io.Fake
:members:
:inherited-members:
:noindex:
Expand Down
3 changes: 3 additions & 0 deletions doc/fluid/api/io/PipeReader.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
4 changes: 2 additions & 2 deletions doc/fluid/api/layers/batch.rst → doc/fluid/api/io/batch.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_layers_batch:
.. _api_fluid_io_batch:

batch
-----

.. autofunction:: paddle.fluid.layers.batch
.. autofunction:: paddle.fluid.io.batch
:noindex:

11 changes: 11 additions & 0 deletions doc/fluid/api/io/buffered.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_io_buffered:

buffered
--------

.. autofunction:: paddle.fluid.io.buffered
:noindex:

11 changes: 11 additions & 0 deletions doc/fluid/api/io/cache.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_io_cache:

cache
-----

.. autofunction:: paddle.fluid.io.cache
:noindex:

11 changes: 11 additions & 0 deletions doc/fluid/api/io/chain.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_io_chain:

chain
-----

.. autofunction:: paddle.fluid.io.chain
:noindex:

11 changes: 11 additions & 0 deletions doc/fluid/api/io/compose.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_io_compose:

compose
-------

.. autofunction:: paddle.fluid.io.compose
:noindex:

11 changes: 11 additions & 0 deletions doc/fluid/api/io/firstn.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_io_firstn:

firstn
------

.. autofunction:: paddle.fluid.io.firstn
:noindex:

11 changes: 11 additions & 0 deletions doc/fluid/api/io/map_readers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_io_map_readers:

map_readers
-----------

.. autofunction:: paddle.fluid.io.map_readers
:noindex:

11 changes: 11 additions & 0 deletions doc/fluid/api/io/multiprocess_reader.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_io_multiprocess_reader:

multiprocess_reader
-------------------

.. autofunction:: paddle.fluid.io.multiprocess_reader
:noindex:

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_layers_shuffle:
.. _api_fluid_io_shuffle:

shuffle
-------

.. autofunction:: paddle.fluid.layers.shuffle
.. autofunction:: paddle.fluid.io.shuffle
:noindex:

11 changes: 11 additions & 0 deletions doc/fluid/api/io/xmap_readers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fluid_io_xmap_readers:

xmap_readers
------------

.. autofunction:: paddle.fluid.io.xmap_readers
:noindex:

Loading

0 comments on commit 6ac2199

Please sign in to comment.