Skip to content

Commit

Permalink
add unique_name.rst (PaddlePaddle#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
luotao1 authored May 27, 2019
1 parent 56acb0c commit 076a207
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/fluid/api/gen_doc.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
python gen_doc.py layers --submodules control_flow device io nn ops tensor learning_rate_scheduler detection metric_op > layers.rst

for module in data_feeder dataset clip metrics executor initializer io nets optimizer profiler regularizer transpiler recordio_writer backward average profiler
for module in data_feeder dataset clip metrics executor initializer io nets optimizer profiler regularizer transpiler recordio_writer backward average profiler unique_name
do
python gen_doc.py ${module} > ${module}.rst
done
Expand Down
1 change: 1 addition & 0 deletions doc/fluid/api/index_en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ API Reference
recordio_writer.rst
regularizer.rst
transpiler.rst
unique_name.rst
data/dataset.rst
data/data_reader.rst

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

.. _api_fluid_unique_name_generate:

generate
--------

.. autofunction:: paddle.fluid.unique_name.generate
:noindex:

.. _api_fluid_unique_name_guard:

guard
-----

.. autofunction:: paddle.fluid.unique_name.guard
:noindex:

.. _api_fluid_unique_name_switch:

switch
------

.. autofunction:: paddle.fluid.unique_name.switch
:noindex:

0 comments on commit 076a207

Please sign in to comment.