From b2dc54c0ab656a6aaa6af7de8764885e705676b3 Mon Sep 17 00:00:00 2001 From: dongdaxiang Date: Wed, 19 Aug 2020 13:13:14 +0800 Subject: [PATCH] add distributed.fleet to gen_doc --- doc/fluid/api/complex.rst | 7 + doc/fluid/api/distributed.rst | 7 + doc/fluid/api/dygraph/LambdaDecay.rst | 12 + doc/fluid/api/dygraph/LinearLrWarmup.rst | 12 + doc/fluid/api/dygraph/MultiStepDecay.rst | 12 + doc/fluid/api/dygraph/ProgramTranslator.rst | 12 + doc/fluid/api/dygraph/StepDecay.rst | 12 + doc/fluid/api/dygraph/declarative.rst | 11 + doc/fluid/api/fleet.rst | 9 + doc/fluid/api/fleet/DistributedStrategy.rst | 13 + doc/fluid/api/fleet/UtilBase.rst | 13 + doc/fluid/api/fluid/ComplexVariable.rst | 13 + doc/fluid/api/fluid/disable_imperative.rst | 11 + doc/fluid/api/fluid/enable_imperative.rst | 11 + doc/fluid/api/framework/ComplexVariable.rst | 13 + doc/fluid/api/framework/cpu_places.rst | 11 + .../api/framework/cuda_pinned_places.rst | 11 + doc/fluid/api/framework/cuda_places.rst | 11 + doc/fluid/api/framework/device_guard.rst | 11 + doc/fluid/api/framework/get_flags.rst | 11 + doc/fluid/api/framework/in_dygraph_mode.rst | 11 + .../api/framework/is_compiled_with_cuda.rst | 11 + doc/fluid/api/framework/load_op_library.rst | 11 + doc/fluid/api/framework/require_version.rst | 11 + doc/fluid/api/framework/set_flags.rst | 11 + doc/fluid/api/gen_doc.py | 1 + doc/fluid/api/gen_doc.sh | 9 + doc/fluid/api/http.log | 0 .../initializer/set_global_initializer.rst | 11 + doc/fluid/api/io/default_collate_fn.rst | 11 + doc/fluid/api/layers/Assert.rst | 11 + doc/fluid/api/layers/cosh.rst | 11 + doc/fluid/api/layers/mish.rst | 11 + doc/fluid/api/layers/resize_linear.rst | 11 + doc/fluid/api/layers/sinh.rst | 11 + doc/fluid/api/layers/unbind.rst | 11 + doc/fluid/api/nn/InstanceNorm.rst | 13 + doc/fluid/api/nn/Pad2D.rst | 13 + doc/fluid/api/nn/UpSample.rst | 13 + doc/fluid/api/nn/loss/BCELoss.rst | 13 + doc/fluid/api/nn/loss/CrossEntropyLoss.rst | 13 + doc/fluid/api/nn/loss/MSELoss.rst | 13 + doc/fluid/api/tensor/linalg/bmm.rst | 11 + doc/fluid/api/tensor/linalg/cholesky.rst | 11 + doc/fluid/api/tensor/linalg/cross.rst | 11 + doc/fluid/api/tensor/linalg/dot.rst | 11 + doc/fluid/api/tensor/linalg/histogram.rst | 11 + doc/fluid/api/tensor/linalg/matmul.rst | 11 + doc/fluid/api/tensor/linalg/norm.rst | 11 + doc/fluid/api/tensor/linalg/t.rst | 11 + doc/fluid/api/tensor/linalg/transpose.rst | 11 + doc/fluid/api/tensor/math/abs.rst | 11 + doc/fluid/api/tensor/math/acos.rst | 11 + doc/fluid/api/tensor/math/addcmul.rst | 11 + doc/fluid/api/tensor/math/addmm.rst | 11 + doc/fluid/api/tensor/math/asin.rst | 11 + doc/fluid/api/tensor/math/ceil.rst | 11 + doc/fluid/api/tensor/math/clamp.rst | 11 + doc/fluid/api/tensor/math/cos.rst | 11 + doc/fluid/api/tensor/math/cosh.rst | 11 + doc/fluid/api/tensor/math/cumsum.rst | 11 + doc/fluid/api/tensor/math/elementwise_add.rst | 11 + doc/fluid/api/tensor/math/elementwise_div.rst | 11 + .../api/tensor/math/elementwise_floordiv.rst | 11 + doc/fluid/api/tensor/math/elementwise_max.rst | 11 + doc/fluid/api/tensor/math/elementwise_min.rst | 11 + doc/fluid/api/tensor/math/elementwise_mod.rst | 11 + doc/fluid/api/tensor/math/elementwise_pow.rst | 11 + doc/fluid/api/tensor/math/elementwise_sub.rst | 11 + doc/fluid/api/tensor/math/erf.rst | 11 + doc/fluid/api/tensor/math/exp.rst | 11 + doc/fluid/api/tensor/math/floor.rst | 11 + doc/fluid/api/tensor/math/increment.rst | 11 + doc/fluid/api/tensor/math/inverse.rst | 11 + doc/fluid/api/tensor/math/kron.rst | 11 + doc/fluid/api/tensor/math/log.rst | 11 + doc/fluid/api/tensor/math/log1p.rst | 11 + doc/fluid/api/tensor/math/logsumexp.rst | 11 + doc/fluid/api/tensor/math/max.rst | 11 + doc/fluid/api/tensor/math/min.rst | 11 + doc/fluid/api/tensor/math/multiplex.rst | 11 + doc/fluid/api/tensor/math/multiply.rst | 11 + doc/fluid/api/tensor/math/reciprocal.rst | 11 + doc/fluid/api/tensor/math/reduce_max.rst | 11 + doc/fluid/api/tensor/math/reduce_min.rst | 11 + doc/fluid/api/tensor/math/reduce_prod.rst | 11 + doc/fluid/api/tensor/math/reduce_sum.rst | 11 + doc/fluid/api/tensor/math/round.rst | 11 + doc/fluid/api/tensor/math/rsqrt.rst | 11 + doc/fluid/api/tensor/math/scale.rst | 11 + doc/fluid/api/tensor/math/sign.rst | 11 + doc/fluid/api/tensor/math/sinh.rst | 11 + doc/fluid/api/tensor/math/square.rst | 11 + doc/fluid/api/tensor/math/stanh.rst | 11 + doc/fluid/api/tensor/math/sums.rst | 11 + doc/fluid/api/tensor/math/trace.rst | 11 + doc/fluid/api/tensor/random/shuffle.rst | 11 + doc/fluid/api/tensor/search.rst | 18 + doc/fluid/api/tensor/search/argmax.rst | 11 + doc/fluid/api/tensor/search/argmin.rst | 11 + doc/fluid/api/tensor/search/argsort.rst | 11 + doc/fluid/api/tensor/search/has_inf.rst | 11 + doc/fluid/api/tensor/search/has_nan.rst | 11 + doc/fluid/api/tensor/search/index_sample.rst | 11 + doc/fluid/api/tensor/search/index_select.rst | 11 + doc/fluid/api/tensor/search/nonzero.rst | 11 + doc/fluid/api/tensor/search/sort.rst | 11 + doc/fluid/api/tensor/search/topk.rst | 11 + doc/fluid/api/tensor/search/where.rst | 11 + doc/fluid/api/tensor/stat.rst | 11 + doc/fluid/api/tensor/stat/mean.rst | 11 + doc/fluid/api/tensor/stat/reduce_mean.rst | 11 + doc/fluid/api/tensor/stat/std.rst | 11 + doc/fluid/api/tensor/stat/var.rst | 11 + .../training/cluster_quick_start.rst.orig | 326 ++++++++++++++++++ 115 files changed, 1579 insertions(+) create mode 100644 doc/fluid/api/complex.rst create mode 100644 doc/fluid/api/distributed.rst create mode 100644 doc/fluid/api/dygraph/LambdaDecay.rst create mode 100644 doc/fluid/api/dygraph/LinearLrWarmup.rst create mode 100644 doc/fluid/api/dygraph/MultiStepDecay.rst create mode 100644 doc/fluid/api/dygraph/ProgramTranslator.rst create mode 100644 doc/fluid/api/dygraph/StepDecay.rst create mode 100644 doc/fluid/api/dygraph/declarative.rst create mode 100644 doc/fluid/api/fleet.rst create mode 100644 doc/fluid/api/fleet/DistributedStrategy.rst create mode 100644 doc/fluid/api/fleet/UtilBase.rst create mode 100644 doc/fluid/api/fluid/ComplexVariable.rst create mode 100644 doc/fluid/api/fluid/disable_imperative.rst create mode 100644 doc/fluid/api/fluid/enable_imperative.rst create mode 100644 doc/fluid/api/framework/ComplexVariable.rst create mode 100644 doc/fluid/api/framework/cpu_places.rst create mode 100644 doc/fluid/api/framework/cuda_pinned_places.rst create mode 100644 doc/fluid/api/framework/cuda_places.rst create mode 100644 doc/fluid/api/framework/device_guard.rst create mode 100644 doc/fluid/api/framework/get_flags.rst create mode 100644 doc/fluid/api/framework/in_dygraph_mode.rst create mode 100644 doc/fluid/api/framework/is_compiled_with_cuda.rst create mode 100644 doc/fluid/api/framework/load_op_library.rst create mode 100644 doc/fluid/api/framework/require_version.rst create mode 100644 doc/fluid/api/framework/set_flags.rst create mode 100644 doc/fluid/api/http.log create mode 100644 doc/fluid/api/initializer/set_global_initializer.rst create mode 100644 doc/fluid/api/io/default_collate_fn.rst create mode 100644 doc/fluid/api/layers/Assert.rst create mode 100644 doc/fluid/api/layers/cosh.rst create mode 100644 doc/fluid/api/layers/mish.rst create mode 100644 doc/fluid/api/layers/resize_linear.rst create mode 100644 doc/fluid/api/layers/sinh.rst create mode 100644 doc/fluid/api/layers/unbind.rst create mode 100644 doc/fluid/api/nn/InstanceNorm.rst create mode 100644 doc/fluid/api/nn/Pad2D.rst create mode 100644 doc/fluid/api/nn/UpSample.rst create mode 100644 doc/fluid/api/nn/loss/BCELoss.rst create mode 100644 doc/fluid/api/nn/loss/CrossEntropyLoss.rst create mode 100644 doc/fluid/api/nn/loss/MSELoss.rst create mode 100644 doc/fluid/api/tensor/linalg/bmm.rst create mode 100644 doc/fluid/api/tensor/linalg/cholesky.rst create mode 100644 doc/fluid/api/tensor/linalg/cross.rst create mode 100644 doc/fluid/api/tensor/linalg/dot.rst create mode 100644 doc/fluid/api/tensor/linalg/histogram.rst create mode 100644 doc/fluid/api/tensor/linalg/matmul.rst create mode 100644 doc/fluid/api/tensor/linalg/norm.rst create mode 100644 doc/fluid/api/tensor/linalg/t.rst create mode 100644 doc/fluid/api/tensor/linalg/transpose.rst create mode 100644 doc/fluid/api/tensor/math/abs.rst create mode 100644 doc/fluid/api/tensor/math/acos.rst create mode 100644 doc/fluid/api/tensor/math/addcmul.rst create mode 100644 doc/fluid/api/tensor/math/addmm.rst create mode 100644 doc/fluid/api/tensor/math/asin.rst create mode 100644 doc/fluid/api/tensor/math/ceil.rst create mode 100644 doc/fluid/api/tensor/math/clamp.rst create mode 100644 doc/fluid/api/tensor/math/cos.rst create mode 100644 doc/fluid/api/tensor/math/cosh.rst create mode 100644 doc/fluid/api/tensor/math/cumsum.rst create mode 100644 doc/fluid/api/tensor/math/elementwise_add.rst create mode 100644 doc/fluid/api/tensor/math/elementwise_div.rst create mode 100644 doc/fluid/api/tensor/math/elementwise_floordiv.rst create mode 100644 doc/fluid/api/tensor/math/elementwise_max.rst create mode 100644 doc/fluid/api/tensor/math/elementwise_min.rst create mode 100644 doc/fluid/api/tensor/math/elementwise_mod.rst create mode 100644 doc/fluid/api/tensor/math/elementwise_pow.rst create mode 100644 doc/fluid/api/tensor/math/elementwise_sub.rst create mode 100644 doc/fluid/api/tensor/math/erf.rst create mode 100644 doc/fluid/api/tensor/math/exp.rst create mode 100644 doc/fluid/api/tensor/math/floor.rst create mode 100644 doc/fluid/api/tensor/math/increment.rst create mode 100644 doc/fluid/api/tensor/math/inverse.rst create mode 100644 doc/fluid/api/tensor/math/kron.rst create mode 100644 doc/fluid/api/tensor/math/log.rst create mode 100644 doc/fluid/api/tensor/math/log1p.rst create mode 100644 doc/fluid/api/tensor/math/logsumexp.rst create mode 100644 doc/fluid/api/tensor/math/max.rst create mode 100644 doc/fluid/api/tensor/math/min.rst create mode 100644 doc/fluid/api/tensor/math/multiplex.rst create mode 100644 doc/fluid/api/tensor/math/multiply.rst create mode 100644 doc/fluid/api/tensor/math/reciprocal.rst create mode 100644 doc/fluid/api/tensor/math/reduce_max.rst create mode 100644 doc/fluid/api/tensor/math/reduce_min.rst create mode 100644 doc/fluid/api/tensor/math/reduce_prod.rst create mode 100644 doc/fluid/api/tensor/math/reduce_sum.rst create mode 100644 doc/fluid/api/tensor/math/round.rst create mode 100644 doc/fluid/api/tensor/math/rsqrt.rst create mode 100644 doc/fluid/api/tensor/math/scale.rst create mode 100644 doc/fluid/api/tensor/math/sign.rst create mode 100644 doc/fluid/api/tensor/math/sinh.rst create mode 100644 doc/fluid/api/tensor/math/square.rst create mode 100644 doc/fluid/api/tensor/math/stanh.rst create mode 100644 doc/fluid/api/tensor/math/sums.rst create mode 100644 doc/fluid/api/tensor/math/trace.rst create mode 100644 doc/fluid/api/tensor/random/shuffle.rst create mode 100644 doc/fluid/api/tensor/search.rst create mode 100644 doc/fluid/api/tensor/search/argmax.rst create mode 100644 doc/fluid/api/tensor/search/argmin.rst create mode 100644 doc/fluid/api/tensor/search/argsort.rst create mode 100644 doc/fluid/api/tensor/search/has_inf.rst create mode 100644 doc/fluid/api/tensor/search/has_nan.rst create mode 100644 doc/fluid/api/tensor/search/index_sample.rst create mode 100644 doc/fluid/api/tensor/search/index_select.rst create mode 100644 doc/fluid/api/tensor/search/nonzero.rst create mode 100644 doc/fluid/api/tensor/search/sort.rst create mode 100644 doc/fluid/api/tensor/search/topk.rst create mode 100644 doc/fluid/api/tensor/search/where.rst create mode 100644 doc/fluid/api/tensor/stat.rst create mode 100644 doc/fluid/api/tensor/stat/mean.rst create mode 100644 doc/fluid/api/tensor/stat/reduce_mean.rst create mode 100644 doc/fluid/api/tensor/stat/std.rst create mode 100644 doc/fluid/api/tensor/stat/var.rst create mode 100644 doc/fluid/user_guides/howto/training/cluster_quick_start.rst.orig diff --git a/doc/fluid/api/complex.rst b/doc/fluid/api/complex.rst new file mode 100644 index 000000000..e17f86db7 --- /dev/null +++ b/doc/fluid/api/complex.rst @@ -0,0 +1,7 @@ +============== +paddle.complex +============== + +.. toctree:: + :maxdepth: 1 + diff --git a/doc/fluid/api/distributed.rst b/doc/fluid/api/distributed.rst new file mode 100644 index 000000000..5a003f8db --- /dev/null +++ b/doc/fluid/api/distributed.rst @@ -0,0 +1,7 @@ +=========== +distributed +=========== + +.. toctree:: + :maxdepth: 1 + diff --git a/doc/fluid/api/dygraph/LambdaDecay.rst b/doc/fluid/api/dygraph/LambdaDecay.rst new file mode 100644 index 000000000..da530d420 --- /dev/null +++ b/doc/fluid/api/dygraph/LambdaDecay.rst @@ -0,0 +1,12 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_LambdaDecay: + +LambdaDecay +----------- + +.. autoclass:: paddle.fluid.dygraph.LambdaDecay + :members: + :noindex: + diff --git a/doc/fluid/api/dygraph/LinearLrWarmup.rst b/doc/fluid/api/dygraph/LinearLrWarmup.rst new file mode 100644 index 000000000..8881fd96c --- /dev/null +++ b/doc/fluid/api/dygraph/LinearLrWarmup.rst @@ -0,0 +1,12 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_LinearLrWarmup: + +LinearLrWarmup +-------------- + +.. autoclass:: paddle.fluid.dygraph.LinearLrWarmup + :members: + :noindex: + diff --git a/doc/fluid/api/dygraph/MultiStepDecay.rst b/doc/fluid/api/dygraph/MultiStepDecay.rst new file mode 100644 index 000000000..b174f6a8d --- /dev/null +++ b/doc/fluid/api/dygraph/MultiStepDecay.rst @@ -0,0 +1,12 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_MultiStepDecay: + +MultiStepDecay +-------------- + +.. autoclass:: paddle.fluid.dygraph.MultiStepDecay + :members: + :noindex: + diff --git a/doc/fluid/api/dygraph/ProgramTranslator.rst b/doc/fluid/api/dygraph/ProgramTranslator.rst new file mode 100644 index 000000000..ac995abd2 --- /dev/null +++ b/doc/fluid/api/dygraph/ProgramTranslator.rst @@ -0,0 +1,12 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_ProgramTranslator: + +ProgramTranslator +----------------- + +.. autoclass:: paddle.fluid.dygraph.ProgramTranslator + :members: + :noindex: + diff --git a/doc/fluid/api/dygraph/StepDecay.rst b/doc/fluid/api/dygraph/StepDecay.rst new file mode 100644 index 000000000..649663d0b --- /dev/null +++ b/doc/fluid/api/dygraph/StepDecay.rst @@ -0,0 +1,12 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_StepDecay: + +StepDecay +--------- + +.. autoclass:: paddle.fluid.dygraph.StepDecay + :members: + :noindex: + diff --git a/doc/fluid/api/dygraph/declarative.rst b/doc/fluid/api/dygraph/declarative.rst new file mode 100644 index 000000000..4d603e862 --- /dev/null +++ b/doc/fluid/api/dygraph/declarative.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_declarative: + +declarative +----------- + +.. autofunction:: paddle.fluid.dygraph.declarative + :noindex: + diff --git a/doc/fluid/api/fleet.rst b/doc/fluid/api/fleet.rst new file mode 100644 index 000000000..c6629623d --- /dev/null +++ b/doc/fluid/api/fleet.rst @@ -0,0 +1,9 @@ +================= +distributed.fleet +================= + +.. toctree:: + :maxdepth: 1 + + fleet/DistributedStrategy.rst + fleet/UtilBase.rst diff --git a/doc/fluid/api/fleet/DistributedStrategy.rst b/doc/fluid/api/fleet/DistributedStrategy.rst new file mode 100644 index 000000000..9e4a447fd --- /dev/null +++ b/doc/fluid/api/fleet/DistributedStrategy.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fleet_DistributedStrategy: + +DistributedStrategy +------------------- + +.. autoclass:: paddle.fleet.DistributedStrategy + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/fleet/UtilBase.rst b/doc/fluid/api/fleet/UtilBase.rst new file mode 100644 index 000000000..4bb9573c5 --- /dev/null +++ b/doc/fluid/api/fleet/UtilBase.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fleet_UtilBase: + +UtilBase +-------- + +.. autoclass:: paddle.fleet.UtilBase + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/fluid/ComplexVariable.rst b/doc/fluid/api/fluid/ComplexVariable.rst new file mode 100644 index 000000000..071457e8c --- /dev/null +++ b/doc/fluid/api/fluid/ComplexVariable.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_ComplexVariable: + +ComplexVariable +--------------- + +.. autoclass:: paddle.fluid.ComplexVariable + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/fluid/disable_imperative.rst b/doc/fluid/api/fluid/disable_imperative.rst new file mode 100644 index 000000000..fc5655bf1 --- /dev/null +++ b/doc/fluid/api/fluid/disable_imperative.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_disable_imperative: + +disable_imperative +------------------ + +.. autofunction:: paddle.fluid.disable_imperative + :noindex: + diff --git a/doc/fluid/api/fluid/enable_imperative.rst b/doc/fluid/api/fluid/enable_imperative.rst new file mode 100644 index 000000000..4fcd0dd20 --- /dev/null +++ b/doc/fluid/api/fluid/enable_imperative.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_enable_imperative: + +enable_imperative +----------------- + +.. autofunction:: paddle.fluid.enable_imperative + :noindex: + diff --git a/doc/fluid/api/framework/ComplexVariable.rst b/doc/fluid/api/framework/ComplexVariable.rst new file mode 100644 index 000000000..1a447b15a --- /dev/null +++ b/doc/fluid/api/framework/ComplexVariable.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_ComplexVariable: + +ComplexVariable +--------------- + +.. autoclass:: paddle.fluid.framework.ComplexVariable + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/framework/cpu_places.rst b/doc/fluid/api/framework/cpu_places.rst new file mode 100644 index 000000000..708cfe465 --- /dev/null +++ b/doc/fluid/api/framework/cpu_places.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_cpu_places: + +cpu_places +---------- + +.. autofunction:: paddle.fluid.framework.cpu_places + :noindex: + diff --git a/doc/fluid/api/framework/cuda_pinned_places.rst b/doc/fluid/api/framework/cuda_pinned_places.rst new file mode 100644 index 000000000..baacf78ed --- /dev/null +++ b/doc/fluid/api/framework/cuda_pinned_places.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_cuda_pinned_places: + +cuda_pinned_places +------------------ + +.. autofunction:: paddle.fluid.framework.cuda_pinned_places + :noindex: + diff --git a/doc/fluid/api/framework/cuda_places.rst b/doc/fluid/api/framework/cuda_places.rst new file mode 100644 index 000000000..4722d8064 --- /dev/null +++ b/doc/fluid/api/framework/cuda_places.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_cuda_places: + +cuda_places +----------- + +.. autofunction:: paddle.fluid.framework.cuda_places + :noindex: + diff --git a/doc/fluid/api/framework/device_guard.rst b/doc/fluid/api/framework/device_guard.rst new file mode 100644 index 000000000..60ae70c9f --- /dev/null +++ b/doc/fluid/api/framework/device_guard.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_device_guard: + +device_guard +------------ + +.. autofunction:: paddle.fluid.framework.device_guard + :noindex: + diff --git a/doc/fluid/api/framework/get_flags.rst b/doc/fluid/api/framework/get_flags.rst new file mode 100644 index 000000000..5cadaf7ce --- /dev/null +++ b/doc/fluid/api/framework/get_flags.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_get_flags: + +get_flags +--------- + +.. autofunction:: paddle.fluid.framework.get_flags + :noindex: + diff --git a/doc/fluid/api/framework/in_dygraph_mode.rst b/doc/fluid/api/framework/in_dygraph_mode.rst new file mode 100644 index 000000000..192e02e63 --- /dev/null +++ b/doc/fluid/api/framework/in_dygraph_mode.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_in_dygraph_mode: + +in_dygraph_mode +--------------- + +.. autofunction:: paddle.fluid.framework.in_dygraph_mode + :noindex: + diff --git a/doc/fluid/api/framework/is_compiled_with_cuda.rst b/doc/fluid/api/framework/is_compiled_with_cuda.rst new file mode 100644 index 000000000..aac1ca317 --- /dev/null +++ b/doc/fluid/api/framework/is_compiled_with_cuda.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_is_compiled_with_cuda: + +is_compiled_with_cuda +--------------------- + +.. autofunction:: paddle.fluid.framework.is_compiled_with_cuda + :noindex: + diff --git a/doc/fluid/api/framework/load_op_library.rst b/doc/fluid/api/framework/load_op_library.rst new file mode 100644 index 000000000..d95af7636 --- /dev/null +++ b/doc/fluid/api/framework/load_op_library.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_load_op_library: + +load_op_library +--------------- + +.. autofunction:: paddle.fluid.framework.load_op_library + :noindex: + diff --git a/doc/fluid/api/framework/require_version.rst b/doc/fluid/api/framework/require_version.rst new file mode 100644 index 000000000..7489135b6 --- /dev/null +++ b/doc/fluid/api/framework/require_version.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_require_version: + +require_version +--------------- + +.. autofunction:: paddle.fluid.framework.require_version + :noindex: + diff --git a/doc/fluid/api/framework/set_flags.rst b/doc/fluid/api/framework/set_flags.rst new file mode 100644 index 000000000..b1422d7e9 --- /dev/null +++ b/doc/fluid/api/framework/set_flags.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_framework_set_flags: + +set_flags +--------- + +.. autofunction:: paddle.fluid.framework.set_flags + :noindex: + diff --git a/doc/fluid/api/gen_doc.py b/doc/fluid/api/gen_doc.py index 65e92c908..dd0ba37f7 100644 --- a/doc/fluid/api/gen_doc.py +++ b/doc/fluid/api/gen_doc.py @@ -22,6 +22,7 @@ import paddle.fluid as fluid import paddle.tensor as tensor import paddle.nn as nn import paddle.complex as complex +import paddle.distributed as distributed #import paddle.framework as framework def parse_arg(): diff --git a/doc/fluid/api/gen_doc.sh b/doc/fluid/api/gen_doc.sh index 5284b277e..9610523ef 100644 --- a/doc/fluid/api/gen_doc.sh +++ b/doc/fluid/api/gen_doc.sh @@ -9,6 +9,15 @@ done python gen_doc.py --module_name "" --module_prefix "" --output fluid --output_name fluid --to_multiple_files True python gen_module_index.py fluid fluid +for module in fleet +do + python gen_doc.py --module_name ${module} --module_prefix ${module} --output ${module} --output_name fleet --to_multiple_files True + python gen_module_index.py ${module} distributed.${module} +done + +python gen_doc.py --module_name "" --module_prefix "" --output distributed --output_name distributed --to_multiple_files True +python gen_module_index.py distributed distributed + # tensor for module in math random stat linalg search do diff --git a/doc/fluid/api/http.log b/doc/fluid/api/http.log new file mode 100644 index 000000000..e69de29bb diff --git a/doc/fluid/api/initializer/set_global_initializer.rst b/doc/fluid/api/initializer/set_global_initializer.rst new file mode 100644 index 000000000..2d013ffd9 --- /dev/null +++ b/doc/fluid/api/initializer/set_global_initializer.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_initializer_set_global_initializer: + +set_global_initializer +---------------------- + +.. autofunction:: paddle.fluid.initializer.set_global_initializer + :noindex: + diff --git a/doc/fluid/api/io/default_collate_fn.rst b/doc/fluid/api/io/default_collate_fn.rst new file mode 100644 index 000000000..38f34e1ee --- /dev/null +++ b/doc/fluid/api/io/default_collate_fn.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_io_default_collate_fn: + +default_collate_fn +------------------ + +.. autofunction:: paddle.fluid.io.default_collate_fn + :noindex: + diff --git a/doc/fluid/api/layers/Assert.rst b/doc/fluid/api/layers/Assert.rst new file mode 100644 index 000000000..96c0a4bb2 --- /dev/null +++ b/doc/fluid/api/layers/Assert.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_Assert: + +Assert +------ + +.. autofunction:: paddle.fluid.layers.Assert + :noindex: + diff --git a/doc/fluid/api/layers/cosh.rst b/doc/fluid/api/layers/cosh.rst new file mode 100644 index 000000000..e72a8694c --- /dev/null +++ b/doc/fluid/api/layers/cosh.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_cosh: + +cosh +---- + +.. autofunction:: paddle.fluid.layers.cosh + :noindex: + diff --git a/doc/fluid/api/layers/mish.rst b/doc/fluid/api/layers/mish.rst new file mode 100644 index 000000000..c902b87f0 --- /dev/null +++ b/doc/fluid/api/layers/mish.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_mish: + +mish +---- + +.. autofunction:: paddle.fluid.layers.mish + :noindex: + diff --git a/doc/fluid/api/layers/resize_linear.rst b/doc/fluid/api/layers/resize_linear.rst new file mode 100644 index 000000000..59b245f18 --- /dev/null +++ b/doc/fluid/api/layers/resize_linear.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_resize_linear: + +resize_linear +------------- + +.. autofunction:: paddle.fluid.layers.resize_linear + :noindex: + diff --git a/doc/fluid/api/layers/sinh.rst b/doc/fluid/api/layers/sinh.rst new file mode 100644 index 000000000..426fec676 --- /dev/null +++ b/doc/fluid/api/layers/sinh.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_sinh: + +sinh +---- + +.. autofunction:: paddle.fluid.layers.sinh + :noindex: + diff --git a/doc/fluid/api/layers/unbind.rst b/doc/fluid/api/layers/unbind.rst new file mode 100644 index 000000000..c16ce4e2f --- /dev/null +++ b/doc/fluid/api/layers/unbind.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_unbind: + +unbind +------ + +.. autofunction:: paddle.fluid.layers.unbind + :noindex: + diff --git a/doc/fluid/api/nn/InstanceNorm.rst b/doc/fluid/api/nn/InstanceNorm.rst new file mode 100644 index 000000000..f925cd134 --- /dev/null +++ b/doc/fluid/api/nn/InstanceNorm.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_nn_InstanceNorm: + +InstanceNorm +------------ + +.. autoclass:: paddle.nn.InstanceNorm + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/nn/Pad2D.rst b/doc/fluid/api/nn/Pad2D.rst new file mode 100644 index 000000000..3a9ddbe3f --- /dev/null +++ b/doc/fluid/api/nn/Pad2D.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_nn_Pad2D: + +Pad2D +----- + +.. autoclass:: paddle.nn.Pad2D + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/nn/UpSample.rst b/doc/fluid/api/nn/UpSample.rst new file mode 100644 index 000000000..ca92779a7 --- /dev/null +++ b/doc/fluid/api/nn/UpSample.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_nn_UpSample: + +UpSample +-------- + +.. autoclass:: paddle.nn.UpSample + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/nn/loss/BCELoss.rst b/doc/fluid/api/nn/loss/BCELoss.rst new file mode 100644 index 000000000..8f1ff8d73 --- /dev/null +++ b/doc/fluid/api/nn/loss/BCELoss.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_nn_loss_BCELoss: + +BCELoss +------- + +.. autoclass:: paddle.nn.loss.BCELoss + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/nn/loss/CrossEntropyLoss.rst b/doc/fluid/api/nn/loss/CrossEntropyLoss.rst new file mode 100644 index 000000000..97cfbf20a --- /dev/null +++ b/doc/fluid/api/nn/loss/CrossEntropyLoss.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_nn_loss_CrossEntropyLoss: + +CrossEntropyLoss +---------------- + +.. autoclass:: paddle.nn.loss.CrossEntropyLoss + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/nn/loss/MSELoss.rst b/doc/fluid/api/nn/loss/MSELoss.rst new file mode 100644 index 000000000..61f15ac37 --- /dev/null +++ b/doc/fluid/api/nn/loss/MSELoss.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_nn_loss_MSELoss: + +MSELoss +------- + +.. autoclass:: paddle.nn.loss.MSELoss + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/tensor/linalg/bmm.rst b/doc/fluid/api/tensor/linalg/bmm.rst new file mode 100644 index 000000000..8b6898f5c --- /dev/null +++ b/doc/fluid/api/tensor/linalg/bmm.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_linalg_bmm: + +bmm +--- + +.. autofunction:: paddle.tensor.linalg.bmm + :noindex: + diff --git a/doc/fluid/api/tensor/linalg/cholesky.rst b/doc/fluid/api/tensor/linalg/cholesky.rst new file mode 100644 index 000000000..fb778311c --- /dev/null +++ b/doc/fluid/api/tensor/linalg/cholesky.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_linalg_cholesky: + +cholesky +-------- + +.. autofunction:: paddle.tensor.linalg.cholesky + :noindex: + diff --git a/doc/fluid/api/tensor/linalg/cross.rst b/doc/fluid/api/tensor/linalg/cross.rst new file mode 100644 index 000000000..a220268a3 --- /dev/null +++ b/doc/fluid/api/tensor/linalg/cross.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_linalg_cross: + +cross +----- + +.. autofunction:: paddle.tensor.linalg.cross + :noindex: + diff --git a/doc/fluid/api/tensor/linalg/dot.rst b/doc/fluid/api/tensor/linalg/dot.rst new file mode 100644 index 000000000..19167ca26 --- /dev/null +++ b/doc/fluid/api/tensor/linalg/dot.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_linalg_dot: + +dot +--- + +.. autofunction:: paddle.tensor.linalg.dot + :noindex: + diff --git a/doc/fluid/api/tensor/linalg/histogram.rst b/doc/fluid/api/tensor/linalg/histogram.rst new file mode 100644 index 000000000..80b827cff --- /dev/null +++ b/doc/fluid/api/tensor/linalg/histogram.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_linalg_histogram: + +histogram +--------- + +.. autofunction:: paddle.tensor.linalg.histogram + :noindex: + diff --git a/doc/fluid/api/tensor/linalg/matmul.rst b/doc/fluid/api/tensor/linalg/matmul.rst new file mode 100644 index 000000000..846cffb1f --- /dev/null +++ b/doc/fluid/api/tensor/linalg/matmul.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_linalg_matmul: + +matmul +------ + +.. autofunction:: paddle.tensor.linalg.matmul + :noindex: + diff --git a/doc/fluid/api/tensor/linalg/norm.rst b/doc/fluid/api/tensor/linalg/norm.rst new file mode 100644 index 000000000..7228d4a37 --- /dev/null +++ b/doc/fluid/api/tensor/linalg/norm.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_linalg_norm: + +norm +---- + +.. autofunction:: paddle.tensor.linalg.norm + :noindex: + diff --git a/doc/fluid/api/tensor/linalg/t.rst b/doc/fluid/api/tensor/linalg/t.rst new file mode 100644 index 000000000..054456167 --- /dev/null +++ b/doc/fluid/api/tensor/linalg/t.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_linalg_t: + +t +- + +.. autofunction:: paddle.tensor.linalg.t + :noindex: + diff --git a/doc/fluid/api/tensor/linalg/transpose.rst b/doc/fluid/api/tensor/linalg/transpose.rst new file mode 100644 index 000000000..d90596194 --- /dev/null +++ b/doc/fluid/api/tensor/linalg/transpose.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_linalg_transpose: + +transpose +--------- + +.. autofunction:: paddle.tensor.linalg.transpose + :noindex: + diff --git a/doc/fluid/api/tensor/math/abs.rst b/doc/fluid/api/tensor/math/abs.rst new file mode 100644 index 000000000..2789ef7d5 --- /dev/null +++ b/doc/fluid/api/tensor/math/abs.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_abs: + +abs +--- + +.. autofunction:: paddle.tensor.math.abs + :noindex: + diff --git a/doc/fluid/api/tensor/math/acos.rst b/doc/fluid/api/tensor/math/acos.rst new file mode 100644 index 000000000..1edd80be9 --- /dev/null +++ b/doc/fluid/api/tensor/math/acos.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_acos: + +acos +---- + +.. autofunction:: paddle.tensor.math.acos + :noindex: + diff --git a/doc/fluid/api/tensor/math/addcmul.rst b/doc/fluid/api/tensor/math/addcmul.rst new file mode 100644 index 000000000..bfdf89c4e --- /dev/null +++ b/doc/fluid/api/tensor/math/addcmul.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_addcmul: + +addcmul +------- + +.. autofunction:: paddle.tensor.math.addcmul + :noindex: + diff --git a/doc/fluid/api/tensor/math/addmm.rst b/doc/fluid/api/tensor/math/addmm.rst new file mode 100644 index 000000000..214e154a9 --- /dev/null +++ b/doc/fluid/api/tensor/math/addmm.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_addmm: + +addmm +----- + +.. autofunction:: paddle.tensor.math.addmm + :noindex: + diff --git a/doc/fluid/api/tensor/math/asin.rst b/doc/fluid/api/tensor/math/asin.rst new file mode 100644 index 000000000..ae06a6d79 --- /dev/null +++ b/doc/fluid/api/tensor/math/asin.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_asin: + +asin +---- + +.. autofunction:: paddle.tensor.math.asin + :noindex: + diff --git a/doc/fluid/api/tensor/math/ceil.rst b/doc/fluid/api/tensor/math/ceil.rst new file mode 100644 index 000000000..6f622ba07 --- /dev/null +++ b/doc/fluid/api/tensor/math/ceil.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_ceil: + +ceil +---- + +.. autofunction:: paddle.tensor.math.ceil + :noindex: + diff --git a/doc/fluid/api/tensor/math/clamp.rst b/doc/fluid/api/tensor/math/clamp.rst new file mode 100644 index 000000000..7ed8ce340 --- /dev/null +++ b/doc/fluid/api/tensor/math/clamp.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_clamp: + +clamp +----- + +.. autofunction:: paddle.tensor.math.clamp + :noindex: + diff --git a/doc/fluid/api/tensor/math/cos.rst b/doc/fluid/api/tensor/math/cos.rst new file mode 100644 index 000000000..3e2967b76 --- /dev/null +++ b/doc/fluid/api/tensor/math/cos.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_cos: + +cos +--- + +.. autofunction:: paddle.tensor.math.cos + :noindex: + diff --git a/doc/fluid/api/tensor/math/cosh.rst b/doc/fluid/api/tensor/math/cosh.rst new file mode 100644 index 000000000..028b89191 --- /dev/null +++ b/doc/fluid/api/tensor/math/cosh.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_cosh: + +cosh +---- + +.. autofunction:: paddle.tensor.math.cosh + :noindex: + diff --git a/doc/fluid/api/tensor/math/cumsum.rst b/doc/fluid/api/tensor/math/cumsum.rst new file mode 100644 index 000000000..4f52877bf --- /dev/null +++ b/doc/fluid/api/tensor/math/cumsum.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_cumsum: + +cumsum +------ + +.. autofunction:: paddle.tensor.math.cumsum + :noindex: + diff --git a/doc/fluid/api/tensor/math/elementwise_add.rst b/doc/fluid/api/tensor/math/elementwise_add.rst new file mode 100644 index 000000000..eb578785c --- /dev/null +++ b/doc/fluid/api/tensor/math/elementwise_add.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_elementwise_add: + +elementwise_add +--------------- + +.. autofunction:: paddle.tensor.math.elementwise_add + :noindex: + diff --git a/doc/fluid/api/tensor/math/elementwise_div.rst b/doc/fluid/api/tensor/math/elementwise_div.rst new file mode 100644 index 000000000..898611578 --- /dev/null +++ b/doc/fluid/api/tensor/math/elementwise_div.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_elementwise_div: + +elementwise_div +--------------- + +.. autofunction:: paddle.tensor.math.elementwise_div + :noindex: + diff --git a/doc/fluid/api/tensor/math/elementwise_floordiv.rst b/doc/fluid/api/tensor/math/elementwise_floordiv.rst new file mode 100644 index 000000000..cac18c6db --- /dev/null +++ b/doc/fluid/api/tensor/math/elementwise_floordiv.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_elementwise_floordiv: + +elementwise_floordiv +-------------------- + +.. autofunction:: paddle.tensor.math.elementwise_floordiv + :noindex: + diff --git a/doc/fluid/api/tensor/math/elementwise_max.rst b/doc/fluid/api/tensor/math/elementwise_max.rst new file mode 100644 index 000000000..cd6085da1 --- /dev/null +++ b/doc/fluid/api/tensor/math/elementwise_max.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_elementwise_max: + +elementwise_max +--------------- + +.. autofunction:: paddle.tensor.math.elementwise_max + :noindex: + diff --git a/doc/fluid/api/tensor/math/elementwise_min.rst b/doc/fluid/api/tensor/math/elementwise_min.rst new file mode 100644 index 000000000..e632f25a6 --- /dev/null +++ b/doc/fluid/api/tensor/math/elementwise_min.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_elementwise_min: + +elementwise_min +--------------- + +.. autofunction:: paddle.tensor.math.elementwise_min + :noindex: + diff --git a/doc/fluid/api/tensor/math/elementwise_mod.rst b/doc/fluid/api/tensor/math/elementwise_mod.rst new file mode 100644 index 000000000..a266491a3 --- /dev/null +++ b/doc/fluid/api/tensor/math/elementwise_mod.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_elementwise_mod: + +elementwise_mod +--------------- + +.. autofunction:: paddle.tensor.math.elementwise_mod + :noindex: + diff --git a/doc/fluid/api/tensor/math/elementwise_pow.rst b/doc/fluid/api/tensor/math/elementwise_pow.rst new file mode 100644 index 000000000..ad23b6af2 --- /dev/null +++ b/doc/fluid/api/tensor/math/elementwise_pow.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_elementwise_pow: + +elementwise_pow +--------------- + +.. autofunction:: paddle.tensor.math.elementwise_pow + :noindex: + diff --git a/doc/fluid/api/tensor/math/elementwise_sub.rst b/doc/fluid/api/tensor/math/elementwise_sub.rst new file mode 100644 index 000000000..a49382d35 --- /dev/null +++ b/doc/fluid/api/tensor/math/elementwise_sub.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_elementwise_sub: + +elementwise_sub +--------------- + +.. autofunction:: paddle.tensor.math.elementwise_sub + :noindex: + diff --git a/doc/fluid/api/tensor/math/erf.rst b/doc/fluid/api/tensor/math/erf.rst new file mode 100644 index 000000000..4c2868450 --- /dev/null +++ b/doc/fluid/api/tensor/math/erf.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_erf: + +erf +--- + +.. autofunction:: paddle.tensor.math.erf + :noindex: + diff --git a/doc/fluid/api/tensor/math/exp.rst b/doc/fluid/api/tensor/math/exp.rst new file mode 100644 index 000000000..d1ac18cea --- /dev/null +++ b/doc/fluid/api/tensor/math/exp.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_exp: + +exp +--- + +.. autofunction:: paddle.tensor.math.exp + :noindex: + diff --git a/doc/fluid/api/tensor/math/floor.rst b/doc/fluid/api/tensor/math/floor.rst new file mode 100644 index 000000000..b94fac555 --- /dev/null +++ b/doc/fluid/api/tensor/math/floor.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_floor: + +floor +----- + +.. autofunction:: paddle.tensor.math.floor + :noindex: + diff --git a/doc/fluid/api/tensor/math/increment.rst b/doc/fluid/api/tensor/math/increment.rst new file mode 100644 index 000000000..57b9f6768 --- /dev/null +++ b/doc/fluid/api/tensor/math/increment.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_increment: + +increment +--------- + +.. autofunction:: paddle.tensor.math.increment + :noindex: + diff --git a/doc/fluid/api/tensor/math/inverse.rst b/doc/fluid/api/tensor/math/inverse.rst new file mode 100644 index 000000000..dacab6f01 --- /dev/null +++ b/doc/fluid/api/tensor/math/inverse.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_inverse: + +inverse +------- + +.. autofunction:: paddle.tensor.math.inverse + :noindex: + diff --git a/doc/fluid/api/tensor/math/kron.rst b/doc/fluid/api/tensor/math/kron.rst new file mode 100644 index 000000000..faac943b7 --- /dev/null +++ b/doc/fluid/api/tensor/math/kron.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_kron: + +kron +---- + +.. autofunction:: paddle.tensor.math.kron + :noindex: + diff --git a/doc/fluid/api/tensor/math/log.rst b/doc/fluid/api/tensor/math/log.rst new file mode 100644 index 000000000..5342a0e63 --- /dev/null +++ b/doc/fluid/api/tensor/math/log.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_log: + +log +--- + +.. autofunction:: paddle.tensor.math.log + :noindex: + diff --git a/doc/fluid/api/tensor/math/log1p.rst b/doc/fluid/api/tensor/math/log1p.rst new file mode 100644 index 000000000..4576efba9 --- /dev/null +++ b/doc/fluid/api/tensor/math/log1p.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_log1p: + +log1p +----- + +.. autofunction:: paddle.tensor.math.log1p + :noindex: + diff --git a/doc/fluid/api/tensor/math/logsumexp.rst b/doc/fluid/api/tensor/math/logsumexp.rst new file mode 100644 index 000000000..63a254753 --- /dev/null +++ b/doc/fluid/api/tensor/math/logsumexp.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_logsumexp: + +logsumexp +--------- + +.. autofunction:: paddle.tensor.math.logsumexp + :noindex: + diff --git a/doc/fluid/api/tensor/math/max.rst b/doc/fluid/api/tensor/math/max.rst new file mode 100644 index 000000000..c3ee0f98a --- /dev/null +++ b/doc/fluid/api/tensor/math/max.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_max: + +max +--- + +.. autofunction:: paddle.tensor.math.max + :noindex: + diff --git a/doc/fluid/api/tensor/math/min.rst b/doc/fluid/api/tensor/math/min.rst new file mode 100644 index 000000000..34d12ca96 --- /dev/null +++ b/doc/fluid/api/tensor/math/min.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_min: + +min +--- + +.. autofunction:: paddle.tensor.math.min + :noindex: + diff --git a/doc/fluid/api/tensor/math/multiplex.rst b/doc/fluid/api/tensor/math/multiplex.rst new file mode 100644 index 000000000..b2b69882b --- /dev/null +++ b/doc/fluid/api/tensor/math/multiplex.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_multiplex: + +multiplex +--------- + +.. autofunction:: paddle.tensor.math.multiplex + :noindex: + diff --git a/doc/fluid/api/tensor/math/multiply.rst b/doc/fluid/api/tensor/math/multiply.rst new file mode 100644 index 000000000..40f2fc711 --- /dev/null +++ b/doc/fluid/api/tensor/math/multiply.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_multiply: + +multiply +-------- + +.. autofunction:: paddle.tensor.math.multiply + :noindex: + diff --git a/doc/fluid/api/tensor/math/reciprocal.rst b/doc/fluid/api/tensor/math/reciprocal.rst new file mode 100644 index 000000000..a4b0bc932 --- /dev/null +++ b/doc/fluid/api/tensor/math/reciprocal.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_reciprocal: + +reciprocal +---------- + +.. autofunction:: paddle.tensor.math.reciprocal + :noindex: + diff --git a/doc/fluid/api/tensor/math/reduce_max.rst b/doc/fluid/api/tensor/math/reduce_max.rst new file mode 100644 index 000000000..b2514c897 --- /dev/null +++ b/doc/fluid/api/tensor/math/reduce_max.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_reduce_max: + +reduce_max +---------- + +.. autofunction:: paddle.tensor.math.reduce_max + :noindex: + diff --git a/doc/fluid/api/tensor/math/reduce_min.rst b/doc/fluid/api/tensor/math/reduce_min.rst new file mode 100644 index 000000000..6df8f0deb --- /dev/null +++ b/doc/fluid/api/tensor/math/reduce_min.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_reduce_min: + +reduce_min +---------- + +.. autofunction:: paddle.tensor.math.reduce_min + :noindex: + diff --git a/doc/fluid/api/tensor/math/reduce_prod.rst b/doc/fluid/api/tensor/math/reduce_prod.rst new file mode 100644 index 000000000..c61f92637 --- /dev/null +++ b/doc/fluid/api/tensor/math/reduce_prod.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_reduce_prod: + +reduce_prod +----------- + +.. autofunction:: paddle.tensor.math.reduce_prod + :noindex: + diff --git a/doc/fluid/api/tensor/math/reduce_sum.rst b/doc/fluid/api/tensor/math/reduce_sum.rst new file mode 100644 index 000000000..9008a0889 --- /dev/null +++ b/doc/fluid/api/tensor/math/reduce_sum.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_reduce_sum: + +reduce_sum +---------- + +.. autofunction:: paddle.tensor.math.reduce_sum + :noindex: + diff --git a/doc/fluid/api/tensor/math/round.rst b/doc/fluid/api/tensor/math/round.rst new file mode 100644 index 000000000..4e0e5d956 --- /dev/null +++ b/doc/fluid/api/tensor/math/round.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_round: + +round +----- + +.. autofunction:: paddle.tensor.math.round + :noindex: + diff --git a/doc/fluid/api/tensor/math/rsqrt.rst b/doc/fluid/api/tensor/math/rsqrt.rst new file mode 100644 index 000000000..73ad2c8c2 --- /dev/null +++ b/doc/fluid/api/tensor/math/rsqrt.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_rsqrt: + +rsqrt +----- + +.. autofunction:: paddle.tensor.math.rsqrt + :noindex: + diff --git a/doc/fluid/api/tensor/math/scale.rst b/doc/fluid/api/tensor/math/scale.rst new file mode 100644 index 000000000..f0aefc8ea --- /dev/null +++ b/doc/fluid/api/tensor/math/scale.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_scale: + +scale +----- + +.. autofunction:: paddle.tensor.math.scale + :noindex: + diff --git a/doc/fluid/api/tensor/math/sign.rst b/doc/fluid/api/tensor/math/sign.rst new file mode 100644 index 000000000..b32a82449 --- /dev/null +++ b/doc/fluid/api/tensor/math/sign.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_sign: + +sign +---- + +.. autofunction:: paddle.tensor.math.sign + :noindex: + diff --git a/doc/fluid/api/tensor/math/sinh.rst b/doc/fluid/api/tensor/math/sinh.rst new file mode 100644 index 000000000..f04e9478f --- /dev/null +++ b/doc/fluid/api/tensor/math/sinh.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_sinh: + +sinh +---- + +.. autofunction:: paddle.tensor.math.sinh + :noindex: + diff --git a/doc/fluid/api/tensor/math/square.rst b/doc/fluid/api/tensor/math/square.rst new file mode 100644 index 000000000..4eb64a0ff --- /dev/null +++ b/doc/fluid/api/tensor/math/square.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_square: + +square +------ + +.. autofunction:: paddle.tensor.math.square + :noindex: + diff --git a/doc/fluid/api/tensor/math/stanh.rst b/doc/fluid/api/tensor/math/stanh.rst new file mode 100644 index 000000000..e57336bde --- /dev/null +++ b/doc/fluid/api/tensor/math/stanh.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_stanh: + +stanh +----- + +.. autofunction:: paddle.tensor.math.stanh + :noindex: + diff --git a/doc/fluid/api/tensor/math/sums.rst b/doc/fluid/api/tensor/math/sums.rst new file mode 100644 index 000000000..642f185ea --- /dev/null +++ b/doc/fluid/api/tensor/math/sums.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_sums: + +sums +---- + +.. autofunction:: paddle.tensor.math.sums + :noindex: + diff --git a/doc/fluid/api/tensor/math/trace.rst b/doc/fluid/api/tensor/math/trace.rst new file mode 100644 index 000000000..0ecde6cb4 --- /dev/null +++ b/doc/fluid/api/tensor/math/trace.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_trace: + +trace +----- + +.. autofunction:: paddle.tensor.math.trace + :noindex: + diff --git a/doc/fluid/api/tensor/random/shuffle.rst b/doc/fluid/api/tensor/random/shuffle.rst new file mode 100644 index 000000000..77c2d67e5 --- /dev/null +++ b/doc/fluid/api/tensor/random/shuffle.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_random_shuffle: + +shuffle +------- + +.. autofunction:: paddle.tensor.random.shuffle + :noindex: + diff --git a/doc/fluid/api/tensor/search.rst b/doc/fluid/api/tensor/search.rst new file mode 100644 index 000000000..e4bbd33b7 --- /dev/null +++ b/doc/fluid/api/tensor/search.rst @@ -0,0 +1,18 @@ +====== +search +====== + +.. toctree:: + :maxdepth: 1 + + search/argmax.rst + search/argmin.rst + search/argsort.rst + search/has_inf.rst + search/has_nan.rst + search/index_sample.rst + search/index_select.rst + search/nonzero.rst + search/sort.rst + search/topk.rst + search/where.rst diff --git a/doc/fluid/api/tensor/search/argmax.rst b/doc/fluid/api/tensor/search/argmax.rst new file mode 100644 index 000000000..74e2c99e3 --- /dev/null +++ b/doc/fluid/api/tensor/search/argmax.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_argmax: + +argmax +------ + +.. autofunction:: paddle.tensor.search.argmax + :noindex: + diff --git a/doc/fluid/api/tensor/search/argmin.rst b/doc/fluid/api/tensor/search/argmin.rst new file mode 100644 index 000000000..f70a017d6 --- /dev/null +++ b/doc/fluid/api/tensor/search/argmin.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_argmin: + +argmin +------ + +.. autofunction:: paddle.tensor.search.argmin + :noindex: + diff --git a/doc/fluid/api/tensor/search/argsort.rst b/doc/fluid/api/tensor/search/argsort.rst new file mode 100644 index 000000000..6d989ba76 --- /dev/null +++ b/doc/fluid/api/tensor/search/argsort.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_argsort: + +argsort +------- + +.. autofunction:: paddle.tensor.search.argsort + :noindex: + diff --git a/doc/fluid/api/tensor/search/has_inf.rst b/doc/fluid/api/tensor/search/has_inf.rst new file mode 100644 index 000000000..10c7d3fa9 --- /dev/null +++ b/doc/fluid/api/tensor/search/has_inf.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_has_inf: + +has_inf +------- + +.. autofunction:: paddle.tensor.search.has_inf + :noindex: + diff --git a/doc/fluid/api/tensor/search/has_nan.rst b/doc/fluid/api/tensor/search/has_nan.rst new file mode 100644 index 000000000..564c62417 --- /dev/null +++ b/doc/fluid/api/tensor/search/has_nan.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_has_nan: + +has_nan +------- + +.. autofunction:: paddle.tensor.search.has_nan + :noindex: + diff --git a/doc/fluid/api/tensor/search/index_sample.rst b/doc/fluid/api/tensor/search/index_sample.rst new file mode 100644 index 000000000..19e94be0e --- /dev/null +++ b/doc/fluid/api/tensor/search/index_sample.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_index_sample: + +index_sample +------------ + +.. autofunction:: paddle.tensor.search.index_sample + :noindex: + diff --git a/doc/fluid/api/tensor/search/index_select.rst b/doc/fluid/api/tensor/search/index_select.rst new file mode 100644 index 000000000..82fe5b04a --- /dev/null +++ b/doc/fluid/api/tensor/search/index_select.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_index_select: + +index_select +------------ + +.. autofunction:: paddle.tensor.search.index_select + :noindex: + diff --git a/doc/fluid/api/tensor/search/nonzero.rst b/doc/fluid/api/tensor/search/nonzero.rst new file mode 100644 index 000000000..0b842994e --- /dev/null +++ b/doc/fluid/api/tensor/search/nonzero.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_nonzero: + +nonzero +------- + +.. autofunction:: paddle.tensor.search.nonzero + :noindex: + diff --git a/doc/fluid/api/tensor/search/sort.rst b/doc/fluid/api/tensor/search/sort.rst new file mode 100644 index 000000000..fd60fee9c --- /dev/null +++ b/doc/fluid/api/tensor/search/sort.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_sort: + +sort +---- + +.. autofunction:: paddle.tensor.search.sort + :noindex: + diff --git a/doc/fluid/api/tensor/search/topk.rst b/doc/fluid/api/tensor/search/topk.rst new file mode 100644 index 000000000..b87dcf439 --- /dev/null +++ b/doc/fluid/api/tensor/search/topk.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_topk: + +topk +---- + +.. autofunction:: paddle.tensor.search.topk + :noindex: + diff --git a/doc/fluid/api/tensor/search/where.rst b/doc/fluid/api/tensor/search/where.rst new file mode 100644 index 000000000..16af6a4bf --- /dev/null +++ b/doc/fluid/api/tensor/search/where.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_search_where: + +where +----- + +.. autofunction:: paddle.tensor.search.where + :noindex: + diff --git a/doc/fluid/api/tensor/stat.rst b/doc/fluid/api/tensor/stat.rst new file mode 100644 index 000000000..599f57e0d --- /dev/null +++ b/doc/fluid/api/tensor/stat.rst @@ -0,0 +1,11 @@ +==== +stat +==== + +.. toctree:: + :maxdepth: 1 + + stat/mean.rst + stat/reduce_mean.rst + stat/std.rst + stat/var.rst diff --git a/doc/fluid/api/tensor/stat/mean.rst b/doc/fluid/api/tensor/stat/mean.rst new file mode 100644 index 000000000..d986abb5d --- /dev/null +++ b/doc/fluid/api/tensor/stat/mean.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_stat_mean: + +mean +---- + +.. autofunction:: paddle.tensor.stat.mean + :noindex: + diff --git a/doc/fluid/api/tensor/stat/reduce_mean.rst b/doc/fluid/api/tensor/stat/reduce_mean.rst new file mode 100644 index 000000000..bb9a0b7c6 --- /dev/null +++ b/doc/fluid/api/tensor/stat/reduce_mean.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_stat_reduce_mean: + +reduce_mean +----------- + +.. autofunction:: paddle.tensor.stat.reduce_mean + :noindex: + diff --git a/doc/fluid/api/tensor/stat/std.rst b/doc/fluid/api/tensor/stat/std.rst new file mode 100644 index 000000000..42af97474 --- /dev/null +++ b/doc/fluid/api/tensor/stat/std.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_stat_std: + +std +--- + +.. autofunction:: paddle.tensor.stat.std + :noindex: + diff --git a/doc/fluid/api/tensor/stat/var.rst b/doc/fluid/api/tensor/stat/var.rst new file mode 100644 index 000000000..627708f37 --- /dev/null +++ b/doc/fluid/api/tensor/stat/var.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_stat_var: + +var +--- + +.. autofunction:: paddle.tensor.stat.var + :noindex: + diff --git a/doc/fluid/user_guides/howto/training/cluster_quick_start.rst.orig b/doc/fluid/user_guides/howto/training/cluster_quick_start.rst.orig new file mode 100644 index 000000000..236c81e6b --- /dev/null +++ b/doc/fluid/user_guides/howto/training/cluster_quick_start.rst.orig @@ -0,0 +1,326 @@ +.. _cluster_quick_start: + +从Paddle Fluid 1.5开始,我们推荐使用Fleet API进行分布式训练,关于Fleet API的介绍可以参考 :ref:`fleet_api` + +首先,我们假设读者已经学会单机训练,如果还没单机训练的经验,请参考 :ref:`single_training` +想了解分布式训练,我们可以从单机模拟分布式训练开始,在单台机器上启动多个进程代表多台机器,并进行分布式训练。 + +为了让读者快速上手,我们采用点击率预估任务作为示例,相关的源码可以参考 xxxx + +单机训练代码 + +.. code:: python + + def train(): + args = parse_args() + if not os.path.isdir(args.model_output_dir): + os.mkdir(args.model_output_dir) + + dense_input = fluid.layers.data( + name="dense_input", shape=[dense_feature_dim], dtype='float32') + sparse_input_ids = [ + fluid.layers.data(name="C" + str(i), shape=[1], lod_level=1, dtype="int64") + for i in range(1, 27)] + label = fluid.layers.data(name='label', shape=[1], dtype='int64') + + loss, auc_var, batch_auc_var = ctr_dnn_model_dataset(dense_input, sparse_input_ids, label, + args.embedding_size, args.sparse_feature_dim) + + optimizer = fluid.optimizer.SGD(learning_rate=1e-4) + optimizer.minimize(loss) + + exe = fluid.Executor(fluid.CPUPlace()) + exe.run(fluid.default_startup_program()) + dataset = fluid.DatasetFactory().create_dataset() + dataset.set_use_var([dense_input] + sparse_input_ids + [label]) + pipe_command = "python criteo_reader.py %d" % args.sparse_feature_dim + dataset.set_pipe_command(pipe_command) + dataset.set_batch_size(100) + thread_num = 10 + dataset.set_thread(thread_num) + whole_filelist = ["raw_data/part-%d" % x for x in range(len(os.listdir("raw_data")))] + + epochs = 20 + for i in range(epochs): + dataset.set_filelist(whole_filelist[:int(0.8*len(whole_filelist))]) + exe.train_from_dataset(program=fluid.default_main_program(), + dataset=dataset, + fetch_list=[auc_var], + fetch_info=["auc"], + debug=False) + model_dir = args.model_output_dir + '/epoch' + str(i + 1) + ".model" + sys.stderr.write("epoch%d finished" % (i + 1)) + fluid.io.save_inference_model(model_dir, [dense_input.name] + [x.name for x in sparse_input_ids] + [label.name], [loss, auc_var], exe) + +使用FleetAPI进行训练的代码 + +.. code:: python + + import paddle.fluid.incubate.fleet.base.role_maker as role_maker + from paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler import fleet + + def train(): + args = parse_args() + if not os.path.isdir(args.model_output_dir): + os.mkdir(args.model_output_dir) + + dense_input = fluid.layers.data( + name="dense_input", shape=[dense_feature_dim], dtype='float32') + sparse_input_ids = [ + fluid.layers.data(name="C" + str(i), shape=[1], lod_level=1, dtype="int64") + for i in range(1, 27)] + label = fluid.layers.data(name='label', shape=[1], dtype='int64') + + loss, auc_var, batch_auc_var = ctr_dnn_model_dataset(dense_input, sparse_input_ids, label, + args.embedding_size, args.sparse_feature_dim) + + role = role_maker.PaddleCloudRoleMaker() + exe = fluid.Executor(fluid.CPUPlace()) + fleet.init(role) + + optimizer = fluid.optimizer.SGD(learning_rate=1e-4) + strategy = DistributeTranspilerConfig() + strategy.sync_mode = False + optimizer = fleet.distributed_optimizer(optimizer, strategy) + optimizer.minimize(loss) + + if fleet.is_server(): + fleet.init_server() + fleet.run_server() + elif fleet.is_worker(): + fleet.init_worker() + exe = fluid.Executor(fluid.CPUPlace()) + exe.run(fluid.default_startup_program()) + dataset = fluid.DatasetFactory().create_dataset() + dataset.set_use_var([dense_input] + sparse_input_ids + [label]) + pipe_command = "python criteo_reader.py %d" % args.sparse_feature_dim + dataset.set_pipe_command(pipe_command) + dataset.set_batch_size(100) + thread_num = 10 + dataset.set_thread(thread_num) + whole_filelist = ["raw_data/part-%d" % x for x in range(len(os.listdir("raw_data")))] + + epochs = 20 + for i in range(epochs): + dataset.set_filelist(whole_filelist[:int(0.8*len(whole_filelist))]) + exe.train_from_dataset(program=fluid.default_main_program(), + dataset=dataset, + fetch_list=[auc_var], + fetch_info=["auc"], + debug=False) + + if fleet.worker_index() == 0: + model_dir = args.model_output_dir + '/epoch' + str(i + 1) + ".model" + sys.stderr.write("epoch%d finished" % (i + 1)) + fluid.io.save_inference_model(model_dir, + [dense_input.name] + [x.name for x in sparse_input_ids] + [label.name], [loss, auc_var], exe) + + +启动命令 + +.. code:: python + + python -m paddle.distributed.launch_ps --worker_num 2 --server_num 2 dist_train.py + +运行日志 + +如何进行多机分布式训练 +请参考百度云运行分布式任务的示例 + + + +分布式训练快速开始 +================== + +准备工作 +-------- + +在本篇文章中,我们将会在介绍如何快速在一个集群中启动一个 PaddlePaddle +的分布式训练任务,在开始之前,请按如下步骤做些准备工作: + +1. 准备一个网络连通的训练集群,在本文中我们使用4个训练节点使用 ``*.paddlepaddle.com`` + 来表示节点的主机名称,您可以根据实际情况修改它。 + +2. 在开始之前确保已经阅读过 :ref:`install_steps` + 并且可以在集群的所有节点上可以正常运行 PaddlePaddle。 + +样例代码 +------- + +下面使用一个非常简单的线性回归模型作为样例来解释如何启动一个包含2个 ``PSERVER`` 节点以及 +2个 ``TRAINER`` 节点的分布式训练任务,您可以将本段代码保存为 ``dist_train.py`` 运行。 + +.. code:: python + + import os + import paddle + import paddle.fluid as fluid + + # train reader + BATCH_SIZE = 20 + EPOCH_NUM = 30 + BATCH_SIZE = 8 + + train_reader = paddle.batch( + paddle.reader.shuffle( + paddle.dataset.uci_housing.train(), buf_size=500), + batch_size=BATCH_SIZE) + + def train(): + y = fluid.layers.data(name='y', shape=[1], dtype='float32') + x = fluid.layers.data(name='x', shape=[13], dtype='float32') + y_predict = fluid.layers.fc(input=x, size=1, act=None) + + loss = fluid.layers.square_error_cost(input=y_predict, label=y) + avg_loss = fluid.layers.mean(loss) + opt = fluid.optimizer.SGD(learning_rate=0.001) + opt.minimize(avg_loss) + + place = fluid.CPUPlace() + feeder = fluid.DataFeeder(place=place, feed_list=[x, y]) + exe = fluid.Executor(place) + + # fetch distributed training environment setting + training_role = os.getenv("PADDLE_TRAINING_ROLE", None) + port = os.getenv("PADDLE_PSERVER_PORT", "6174") + pserver_ips = os.getenv("PADDLE_PSERVER_IPS", "") + trainer_id = int(os.getenv("PADDLE_TRAINER_ID", "0")) + eplist = [] + for ip in pserver_ips.split(","): + eplist.append(':'.join([ip, port])) + pserver_endpoints = ",".join(eplist) + trainers = int(os.getenv("PADDLE_TRAINERS")) + current_endpoint = os.getenv("PADDLE_CURRENT_IP", "") + ":" + port + + t = fluid.DistributeTranspiler() + t.transpile( + trainer_id = trainer_id, + pservers = pserver_endpoints, + trainers = trainers) + + if training_role == "PSERVER": + pserver_prog = t.get_pserver_program(current_endpoint) + startup_prog = t.get_startup_program(current_endpoint, pserver_prog) + exe.run(startup_prog) + exe.run(pserver_prog) + elif training_role == "TRAINER": + trainer_prog = t.get_trainer_program() + exe.run(fluid.default_startup_program()) + + for epoch in range(EPOCH_NUM): + for batch_id, batch_data in enumerate(train_reader()): + avg_loss_value, = exe.run(trainer_prog, + feed=feeder.feed(batch_data), + fetch_list=[avg_loss]) + if (batch_id + 1) % 10 == 0: + print("Epoch: {0}, Batch: {1}, loss: {2}".format( + epoch, batch_id, avg_loss_value[0])) + # destory the resource of current trainer node in pserver server node + exe.close() + else: + raise AssertionError("PADDLE_TRAINING_ROLE should be one of [TRAINER, PSERVER]") + + train() + +环境变量说明 +----------- + +在启动分布式训练任务时,使用不同的环境变量来表示不同的节点角色,具体如下: + +.. list-table:: + :header-rows: 1 + + * - 环境变量 + - 数据类型 + - 样例 + - 描述 + * - :code:`PADDLE_TRAINING_ROLE` + - str + - :code:`PSERVER,TRAINER` + - 当前训练节点角色 + * - :code:`PADDLE_PSERVER_IPS` + - str + - :code:`ps0.paddlepaddle.com,ps1.paddlepaddle.com` + - 分布式训练任务中所有 PSERVER 节点的 IP 地址或 hostname, 使用","分隔 + * - :code:`PADDLE_PSERVER_PORT` + - int + - 6174 + - PSERVER 进程监听的端口 + * - :code:`PADDLE_TRAINERS` + - int + - 2 + - 分布式训练任务中 trainer 节点的数量 + * - :code:`PADDLE_CURRENT_IP` + - str + - :code:`ps0.paddlepaddle.com` + - 当前 PSERVER 节点的 IP 地址或 hostname + * - :code:`PADDLE_TRAINER_ID` + - str + - 0 + - 当前 TRAINER 节点的 ID (唯一), 取值范围为 [0, PADDLE_TRAINERS) + +注: 环境变量只是获取运行时信息的一种方式,实际任务中可以采用命令行参数等方式获取运行时信息。 + +分布式训练相关 API +------------------ + +DistributeTranspiler +~~~~~~~~~~~~~~~~~~~~~~ + +基于 pserver-trainer 架构的的分布式训练任务分为两种角色: Parameter Server(PSERVER) 以及 TRAINER, +在 Fluid 中,用户只需配置单机训练所需要的网络配置, ``DistributeTranspiler`` 模块会自动地根据 +当前训练节点的角色将用户配置的单机网路配置改写成 PSERVER 和 TRAINER 需要运行的网络配置: + +.. code:: python + + t = fluid.DistributeTranspiler() + t.transpile( + trainer_id = trainer_id, + pservers = pserver_endpoints, + trainers = trainers) + if PADDLE_TRAINING_ROLE == "TRAINER": + # fetch the trainer program and execute it + trainer_prog = t.get_trainer_program() + ... + + elif PADDLE_TRAINER_ROLE == "PSERVER": + # fetch the pserver program and execute it + pserver_prog = t.get_pserver_program(current_endpoint) + ... + +exe.close() +~~~~~~~~~~~~~~ + +PSERVER 节点中会保存所有 TRAINER 节点的状态信息,在 TRAINER 结束训练时需要调用 ``exe.close()`` +通知所有 PSERVER 节点释放当前 TRAINER 节点的资源: + +.. code:: python + + exe = fluid.Executor(fluid.CPUPlace()) + # training process ... + exe.close() # notify PServer to destory the resource + +注意:所有的trainer在退出时都需要调用exe.close()。 + + +启动分布式训练任务 +-------------------- + +.. list-table:: + :header-rows: 1 + + * - 启动节点 + - 启动命令 + - 说明 + * - ps0.paddlepaddle.com + - :code:`PADDLE_TRAINING_ROLE=PSERVER PADDLE_CURRENT_IP=ps0.paddlepaddle.com PADDLE_PSERVER_IPS=ps0.paddlepaddle.com,ps1.paddlepaddle.com PADDLE_TRAINERS=2 PADDLE_PSERVER_PORT=6174 python fluid_dist.py` + - 启动 PSERVER 节点 + * - ps1.paddlepaddle.com + - :code:`PADDLE_TRAINING_ROLE=PSERVER PADDLE_CURRENT_IP=ps1.paddlepaddle.com PADDLE_PSERVER_IPS=ps0.paddlepaddle.com,ps1.paddlepaddle.com PADDLE_TRAINERS=2 PADDLE_PSERVER_PORT=6174 python fluid_dist.py` + - 启动 PSERVER 节点 + * - trainer0.paddlepaddle.com + - :code:`PADDLE_TRAINING_ROLE=TRAINER PADDLE_PSERVER_IPS=ps0.paddlepaddle.com,ps1.paddlepaddle.com PADDLE_TRAINERS=2 PADDLE_TRAINER_ID=0 PADDLE_PSERVER_PORT=6174 python fluid_dist.py` + - 启动第0号 TRAINER 节点 + * - trainer1.paddlepaddle.com + - :code:`PADDLE_TRAINING_ROLE=TRAINER PADDLE_PSERVER_IPS=ps0.paddlepaddle.com,ps1.paddlepaddle.com PADDLE_TRAINERS=2 PADDLE_TRAINER_ID=1 PADDLE_PSERVER_PORT=6174 python fluid_dist.py` + - 启动第1号 TRAINER 节点 -- GitLab