From 912edf7fbec5ce2388cbf8c469032cb4a4f84228 Mon Sep 17 00:00:00 2001 From: yuyang18 Date: Tue, 19 Jun 2018 20:21:47 +0800 Subject: [PATCH] Add APIs --- .gitignore | 1 + source/api_reference/average.rst | 16 ++++++++++++++++ source/api_reference/backward.rst | 23 +++++++++++++++++++++++ source/api_reference/fluid.rst | 25 ++++++++++++++++--------- source/api_reference/gen_doc.sh | 2 +- source/api_reference/layers.rst | 8 ++++++++ source/api_reference/optimizer.rst | 18 ++++++++++++++++++ source/locale/en/LC_MESSAGES/index.po | 12 ++++++------ 8 files changed, 89 insertions(+), 16 deletions(-) create mode 100644 source/api_reference/average.rst create mode 100644 source/api_reference/backward.rst diff --git a/.gitignore b/.gitignore index 8eee35c73..378cc88c9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .env .DS_Store ._.DS_Store +*.mo diff --git a/source/api_reference/average.rst b/source/api_reference/average.rst new file mode 100644 index 000000000..496f5b298 --- /dev/null +++ b/source/api_reference/average.rst @@ -0,0 +1,16 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +============= +fluid.average +============= + +.. _api_fluid_average_WeightedAverage: + +WeightedAverage +--------------- + +.. autoclass:: paddle.fluid.average.WeightedAverage + :members: + :noindex: + diff --git a/source/api_reference/backward.rst b/source/api_reference/backward.rst new file mode 100644 index 000000000..115e0d24b --- /dev/null +++ b/source/api_reference/backward.rst @@ -0,0 +1,23 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +============== +fluid.backward +============== + +.. _api_fluid_backward_append_backward: + +append_backward +--------------- + +.. autofunction:: paddle.fluid.backward.append_backward + :noindex: + +.. _api_fluid_backward_calc_gradient: + +calc_gradient +------------- + +.. autofunction:: paddle.fluid.backward.calc_gradient + :noindex: + diff --git a/source/api_reference/fluid.rst b/source/api_reference/fluid.rst index 4312737ee..163ddb13a 100644 --- a/source/api_reference/fluid.rst +++ b/source/api_reference/fluid.rst @@ -65,6 +65,22 @@ program_guard .. autofunction:: paddle.fluid.program_guard :noindex: +.. _api_fluid_switch_startup_program: + +switch_startup_program +---------------------- + +.. autofunction:: paddle.fluid.switch_startup_program + :noindex: + +.. _api_fluid_switch_main_program: + +switch_main_program +------------------- + +.. autofunction:: paddle.fluid.switch_main_program + :noindex: + .. _api_fluid_get_var: get_var @@ -358,12 +374,3 @@ DataFeeder :members: :noindex: -.. _api_fluid_Scope: - -Scope ------ - -.. autoclass:: paddle.fluid.Scope - :members: - :noindex: - diff --git a/source/api_reference/gen_doc.sh b/source/api_reference/gen_doc.sh index bdc98afd9..88f0fed33 100755 --- a/source/api_reference/gen_doc.sh +++ b/source/api_reference/gen_doc.sh @@ -1,7 +1,7 @@ #!/bin/bash python gen_doc.py layers --submodules control_flow device io nn ops tensor learning_rate_scheduler detection metric tensor > layers.rst -for module in data_feeder clip metrics executor initializer io nets optimizer param_attr profiler regularizer transpiler recordio_writer +for module in data_feeder clip metrics executor initializer io nets optimizer param_attr profiler regularizer transpiler recordio_writer backward average do python gen_doc.py ${module} > ${module}.rst done diff --git a/source/api_reference/layers.rst b/source/api_reference/layers.rst index c62947bbf..7c7bd56ea 100644 --- a/source/api_reference/layers.rst +++ b/source/api_reference/layers.rst @@ -910,6 +910,14 @@ log .. autofunction:: paddle.fluid.layers.log :noindex: +.. _api_fluid_layers_crop: + +crop +---- + +.. autofunction:: paddle.fluid.layers.crop + :noindex: + ops === diff --git a/source/api_reference/optimizer.rst b/source/api_reference/optimizer.rst index 15a764d8e..a3bab24ce 100644 --- a/source/api_reference/optimizer.rst +++ b/source/api_reference/optimizer.rst @@ -59,6 +59,15 @@ DecayedAdagrad :members: :noindex: +.. _api_fluid_optimizer_Ftrl: + +Ftrl +---- + +.. autoclass:: paddle.fluid.optimizer.Ftrl + :members: + :noindex: + .. _api_fluid_optimizer_SGDOptimizer: SGDOptimizer @@ -122,6 +131,15 @@ RMSPropOptimizer :members: :noindex: +.. _api_fluid_optimizer_FtrlOptimizer: + +FtrlOptimizer +------------- + +.. autoclass:: paddle.fluid.optimizer.FtrlOptimizer + :members: + :noindex: + .. _api_fluid_optimizer_Adadelta: Adadelta diff --git a/source/locale/en/LC_MESSAGES/index.po b/source/locale/en/LC_MESSAGES/index.po index 03fa1eb72..06ace94f6 100644 --- a/source/locale/en/LC_MESSAGES/index.po +++ b/source/locale/en/LC_MESSAGES/index.po @@ -4,23 +4,24 @@ # package. # FIRST AUTHOR , 2018. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: PaddlePaddle Fluid 0.13.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-14 18:52+0800\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"PO-Revision-Date: 2018-06-19 16:12+0800\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.6.0\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: en\n" +"X-Generator: Poedit 2.0.8\n" #: ../../source/index.rst:8 msgid "欢迎来到 Fluid" -msgstr "" +msgstr "Welcome to Fluid documentation" #: ../../source/index.rst:25 msgid "Indices and tables" @@ -37,4 +38,3 @@ msgstr "" #: ../../source/index.rst:29 msgid ":ref:`search`" msgstr "" - -- GitLab