diff --git a/doc/fluid/api/dygraph.rst b/doc/fluid/api/dygraph.rst index 927a767edc2adbadf65488ab10c233b6fbb207fb..3630bcb92d1d57e1ded5af72386a12445f33569c 100644 --- a/doc/fluid/api/dygraph.rst +++ b/doc/fluid/api/dygraph.rst @@ -13,9 +13,17 @@ fluid.dygraph dygraph/Conv3D.rst dygraph/Conv3DTranspose.rst dygraph/CosineDecay.rst + dygraph/DataParallel.rst + dygraph/disable_dygraph.rst + dygraph/dygraph_to_static_code.rst + dygraph/dygraph_to_static_func.rst dygraph/dygraph_to_static_output.rst + dygraph/dygraph_to_static_program.rst dygraph/Embedding.rst + dygraph/enable_dygraph.rst + dygraph/enabled.rst dygraph/ExponentialDecay.rst + dygraph/grad.rst dygraph/GroupNorm.rst dygraph/GRUUnit.rst dygraph/guard.rst diff --git a/doc/fluid/api/dygraph/DataParallel.rst b/doc/fluid/api/dygraph/DataParallel.rst new file mode 100644 index 0000000000000000000000000000000000000000..33c8a3fd80181e529c1c6728f867cc952b818eb4 --- /dev/null +++ b/doc/fluid/api/dygraph/DataParallel.rst @@ -0,0 +1,12 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_DataParallel: + +DataParallel +------------ + +.. autoclass:: paddle.fluid.dygraph.DataParallel + :members: + :noindex: + diff --git a/doc/fluid/api/dygraph/disable_dygraph.rst b/doc/fluid/api/dygraph/disable_dygraph.rst new file mode 100644 index 0000000000000000000000000000000000000000..17adf7a7559fe31260a4d37b618bafa5e0575b57 --- /dev/null +++ b/doc/fluid/api/dygraph/disable_dygraph.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_disable_dygraph: + +disable_dygraph +--------------- + +.. autofunction:: paddle.fluid.dygraph.disable_dygraph + :noindex: + diff --git a/doc/fluid/api/dygraph/dygraph_to_static_code.rst b/doc/fluid/api/dygraph/dygraph_to_static_code.rst new file mode 100644 index 0000000000000000000000000000000000000000..bd6af528d903316df1c1c03f63392ace8af7c55b --- /dev/null +++ b/doc/fluid/api/dygraph/dygraph_to_static_code.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_dygraph_to_static_code: + +dygraph_to_static_code +---------------------- + +.. autofunction:: paddle.fluid.dygraph.dygraph_to_static_code + :noindex: + diff --git a/doc/fluid/api/dygraph/dygraph_to_static_func.rst b/doc/fluid/api/dygraph/dygraph_to_static_func.rst new file mode 100644 index 0000000000000000000000000000000000000000..d73ac96d88263e5c759b260ddd7dd45f57b9fe71 --- /dev/null +++ b/doc/fluid/api/dygraph/dygraph_to_static_func.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_dygraph_to_static_func: + +dygraph_to_static_func +---------------------- + +.. autofunction:: paddle.fluid.dygraph.dygraph_to_static_func + :noindex: + diff --git a/doc/fluid/api/dygraph/dygraph_to_static_program.rst b/doc/fluid/api/dygraph/dygraph_to_static_program.rst new file mode 100644 index 0000000000000000000000000000000000000000..1f481533654b6db79b70a3a9b2235ec8a9696ec5 --- /dev/null +++ b/doc/fluid/api/dygraph/dygraph_to_static_program.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_dygraph_to_static_program: + +dygraph_to_static_program +------------------------- + +.. autofunction:: paddle.fluid.dygraph.dygraph_to_static_program + :noindex: + diff --git a/doc/fluid/api/dygraph/enable_dygraph.rst b/doc/fluid/api/dygraph/enable_dygraph.rst new file mode 100644 index 0000000000000000000000000000000000000000..02dfdcd457761c8533118bcd7b505f427ab5d849 --- /dev/null +++ b/doc/fluid/api/dygraph/enable_dygraph.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_enable_dygraph: + +enable_dygraph +-------------- + +.. autofunction:: paddle.fluid.dygraph.enable_dygraph + :noindex: + diff --git a/doc/fluid/api/dygraph/enabled.rst b/doc/fluid/api/dygraph/enabled.rst new file mode 100644 index 0000000000000000000000000000000000000000..dc2bfa7649ef185be254a6a71161b613726e7449 --- /dev/null +++ b/doc/fluid/api/dygraph/enabled.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_enabled: + +enabled +------- + +.. autofunction:: paddle.fluid.dygraph.enabled + :noindex: + diff --git a/doc/fluid/api/dygraph/grad.rst b/doc/fluid/api/dygraph/grad.rst new file mode 100644 index 0000000000000000000000000000000000000000..fb697aaf16523a5ef1014061e91b2408468448d0 --- /dev/null +++ b/doc/fluid/api/dygraph/grad.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_dygraph_grad: + +grad +---- + +.. autofunction:: paddle.fluid.dygraph.grad + :noindex: + diff --git a/doc/fluid/api/fluid.rst b/doc/fluid/api/fluid.rst index 5a52fead243c1a5418b665312bcf9ed7cb96e158..40bd74ef82f388ec6f738dbc9602a6dbf367ec9e 100644 --- a/doc/fluid/api/fluid.rst +++ b/doc/fluid/api/fluid.rst @@ -20,14 +20,15 @@ fluid fluid/DataFeeder.rst fluid/default_main_program.rst fluid/default_startup_program.rst - fluid/disable_dygraph.rst fluid/device_guard.rst + fluid/disable_dygraph.rst fluid/DistributeTranspiler.rst fluid/DistributeTranspilerConfig.rst fluid/embedding.rst fluid/enable_dygraph.rst fluid/ExecutionStrategy.rst fluid/Executor.rst + fluid/get_flags.rst fluid/global_scope.rst fluid/gradients.rst fluid/in_dygraph_mode.rst @@ -47,6 +48,7 @@ fluid fluid/require_version.rst fluid/save.rst fluid/scope_guard.rst + fluid/set_flags.rst fluid/Tensor.rst fluid/Variable.rst fluid/WeightNormParamAttr.rst diff --git a/doc/fluid/api/fluid/device_guard.rst b/doc/fluid/api/fluid/device_guard.rst index 1cfdb1f90822b44e60cd04503805eb911be80d45..d8d611168644c45322972669bdd2806f393bcf43 100644 --- a/doc/fluid/api/fluid/device_guard.rst +++ b/doc/fluid/api/fluid/device_guard.rst @@ -4,7 +4,7 @@ .. _api_fluid_device_guard: device_guard ------------------------ +------------ .. autofunction:: paddle.fluid.device_guard :noindex: diff --git a/doc/fluid/api/fluid/get_flags.rst b/doc/fluid/api/fluid/get_flags.rst new file mode 100644 index 0000000000000000000000000000000000000000..2432965408118fe7c58d2898c2871391a32750a2 --- /dev/null +++ b/doc/fluid/api/fluid/get_flags.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_get_flags: + +get_flags +--------- + +.. autofunction:: paddle.fluid.get_flags + :noindex: + diff --git a/doc/fluid/api/fluid/set_flags.rst b/doc/fluid/api/fluid/set_flags.rst new file mode 100644 index 0000000000000000000000000000000000000000..730438b200ee575912c940d616f0dbffdcf73d41 --- /dev/null +++ b/doc/fluid/api/fluid/set_flags.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_set_flags: + +set_flags +--------- + +.. autofunction:: paddle.fluid.set_flags + :noindex: + diff --git a/doc/fluid/api/gen_doc.py b/doc/fluid/api/gen_doc.py index b2cd5c5c6c4fb4097f4b4c2aafcb061ade169e4c..9651f206dbe9322a8f11b91554d5ca36a867e01b 100644 --- a/doc/fluid/api/gen_doc.py +++ b/doc/fluid/api/gen_doc.py @@ -20,6 +20,8 @@ import os import contextlib import paddle.fluid as fluid import paddle.tensor as tensor +import paddle.nn as nn +#import paddle.framework as framework def parse_arg(): parser = argparse.ArgumentParser() @@ -32,6 +34,8 @@ def parse_arg(): '--output', type=str, help='Output file or output directory for output rst') parser.add_argument( '--output_name', type=str, help='Output file or output directory for output rst') + parser.add_argument( + '--output_dir', type=str, help='Output file or output directory for output rst') parser.add_argument( '--to_multiple_files', type=bool, default=False, help='Whether to separate to multiple files') @@ -144,7 +148,7 @@ class DocGenerator(object): self.stream.write(".. _api_{0}_{1}:\n\n".format("_".join( self.module_prefix.split(".")), name)) -def generate_doc(module_name, module_prefix, output, output_name, to_multiple_files): +def generate_doc(module_name, module_prefix, output, output_name, to_multiple_files, output_dir): if module_name == "": module_name = None @@ -172,6 +176,11 @@ def generate_doc(module_name, module_prefix, output, output_name, to_multiple_fi gen.module_prefix = output_name + "." + module_prefix dirname = output if to_multiple_files else os.path.dirname(output) + + if output_dir != None: + dirname = output_dir + "/" + dirname + output = output_dir + "/" + output + if len(dirname) > 0 and (not os.path.exists(dirname) or not os.path.isdir(dirname)): os.makedirs(dirname) @@ -203,7 +212,7 @@ def generate_doc(module_name, module_prefix, output, output_name, to_multiple_fi def main(): args = parse_arg() - generate_doc(args.module_name, args.module_prefix, args.output, args.output_name, args.to_multiple_files) + generate_doc(args.module_name, args.module_prefix, args.output, args.output_name, args.to_multiple_files, args.output_dir) if __name__ == '__main__': diff --git a/doc/fluid/api/gen_doc.sh b/doc/fluid/api/gen_doc.sh index 66d014399f99e205f3b3d35642de4db3cddf9108..ad085f500090ab866bf70653bf3fba7fab03f829 100644 --- a/doc/fluid/api/gen_doc.sh +++ b/doc/fluid/api/gen_doc.sh @@ -9,5 +9,21 @@ 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 math random +do + python gen_doc.py --module_name ${module} --module_prefix ${module} --output ${module} --output_name tensor --to_multiple_files True --output_dir tensor + python gen_module_index.py tensor.${module} ${module} +done + +python gen_module_index.py tensor paddle.tensor + +for module in loss +do + python gen_doc.py --module_name ${module} --module_prefix ${module} --output ${module} --output_name nn --to_multiple_files True --output_dir nn + python gen_module_index.py nn.${module} ${module} +done + +python gen_module_index.py nn paddle.nn + python gen_index.py diff --git a/doc/fluid/api/index_en.rst b/doc/fluid/api/index_en.rst index dce0d7cf9679ca2b47fd2a2713c31d5538b6a61c..e4e1661a0aa0020e69294f6df4dc2efc426ac603 100644 --- a/doc/fluid/api/index_en.rst +++ b/doc/fluid/api/index_en.rst @@ -19,8 +19,10 @@ API Reference layers.rst metrics.rst nets.rst + nn.rst optimizer.rst profiler.rst regularizer.rst + tensor.rst transpiler.rst unique_name.rst diff --git a/doc/fluid/api/io/ComposeNotAligned.rst b/doc/fluid/api/io/ComposeNotAligned.rst index c2f3f465b7dd287e22c5bdcf2401c40d5494d4f1..3968d80ce3cc5c174763c7b6161c80e3c3840042 100644 --- a/doc/fluid/api/io/ComposeNotAligned.rst +++ b/doc/fluid/api/io/ComposeNotAligned.rst @@ -11,4 +11,3 @@ ComposeNotAligned :inherited-members: :noindex: -This indicates an error state of compose API, which will raise when outputs of readers are not aligned. diff --git a/doc/fluid/api/layers.rst b/doc/fluid/api/layers.rst index 066c1d5c744f40df2a8d9c092bc68e28d2786c7e..3ad2eeaa2941b7a0b6df18eb51aaf7b3691504b5 100644 --- a/doc/fluid/api/layers.rst +++ b/doc/fluid/api/layers.rst @@ -25,6 +25,7 @@ fluid.layers layers/atan.rst layers/auc.rst layers/autoincreased_step_counter.rst + layers/BasicDecoder.rst layers/batch_norm.rst layers/beam_search.rst layers/beam_search_decode.rst @@ -68,6 +69,7 @@ fluid.layers layers/cumsum.rst layers/data.rst layers/data_norm.rst + layers/DecodeHelper.rst layers/Decoder.rst layers/deformable_conv.rst layers/deformable_roi_pooling.rst @@ -104,6 +106,7 @@ fluid.layers layers/eye.rst layers/fc.rst layers/fill_constant.rst + layers/fill_constant_batch_size_like.rst layers/filter_by_instag.rst layers/flatten.rst layers/floor.rst @@ -112,6 +115,7 @@ fluid.layers layers/gather_nd.rst layers/gather_tree.rst layers/gaussian_random.rst + layers/gaussian_random_batch_size_like.rst layers/gelu.rst layers/generate_mask_labels.rst layers/generate_proposal_labels.rst @@ -119,6 +123,7 @@ fluid.layers layers/get_tensor_from_selected_rows.rst layers/greater_equal.rst layers/greater_than.rst + layers/GreedyEmbeddingHelper.rst layers/grid_sampler.rst layers/group_norm.rst layers/gru_unit.rst @@ -136,6 +141,7 @@ fluid.layers layers/image_resize.rst layers/image_resize_short.rst layers/increment.rst + layers/inplace_abn.rst layers/instance_norm.rst layers/inverse_time_decay.rst layers/iou_similarity.rst @@ -237,6 +243,7 @@ fluid.layers layers/rpn_target_assign.rst layers/rsqrt.rst layers/sampled_softmax_with_cross_entropy.rst + layers/SampleEmbeddingHelper.rst layers/sampling_id.rst layers/scale.rst layers/scatter.rst @@ -302,10 +309,12 @@ fluid.layers layers/tensor_array_to_tensor.rst layers/thresholded_relu.rst layers/topk.rst + layers/TrainingHelper.rst layers/transpose.rst layers/unfold.rst layers/Uniform.rst layers/uniform_random.rst + layers/uniform_random_batch_size_like.rst layers/unique.rst layers/unique_with_counts.rst layers/unsqueeze.rst diff --git a/doc/fluid/api/layers/BasicDecoder.rst b/doc/fluid/api/layers/BasicDecoder.rst new file mode 100644 index 0000000000000000000000000000000000000000..8eb0f78dc8621d42061dfe944106c64007a0d0c1 --- /dev/null +++ b/doc/fluid/api/layers/BasicDecoder.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_BasicDecoder: + +BasicDecoder +------------ + +.. autoclass:: paddle.fluid.layers.BasicDecoder + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/layers/DecodeHelper.rst b/doc/fluid/api/layers/DecodeHelper.rst new file mode 100644 index 0000000000000000000000000000000000000000..ba475f2a1daea0e842d07d0372de2a828de2931a --- /dev/null +++ b/doc/fluid/api/layers/DecodeHelper.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_DecodeHelper: + +DecodeHelper +------------ + +.. autoclass:: paddle.fluid.layers.DecodeHelper + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/layers/GreedyEmbeddingHelper.rst b/doc/fluid/api/layers/GreedyEmbeddingHelper.rst new file mode 100644 index 0000000000000000000000000000000000000000..fb7741ec499fcff9404d384b760c03613c63a327 --- /dev/null +++ b/doc/fluid/api/layers/GreedyEmbeddingHelper.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_GreedyEmbeddingHelper: + +GreedyEmbeddingHelper +--------------------- + +.. autoclass:: paddle.fluid.layers.GreedyEmbeddingHelper + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/layers/SampleEmbeddingHelper.rst b/doc/fluid/api/layers/SampleEmbeddingHelper.rst new file mode 100644 index 0000000000000000000000000000000000000000..99b9ca39900643e5c5c5806106c66a151fdf9a27 --- /dev/null +++ b/doc/fluid/api/layers/SampleEmbeddingHelper.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_SampleEmbeddingHelper: + +SampleEmbeddingHelper +--------------------- + +.. autoclass:: paddle.fluid.layers.SampleEmbeddingHelper + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/layers/TrainingHelper.rst b/doc/fluid/api/layers/TrainingHelper.rst new file mode 100644 index 0000000000000000000000000000000000000000..247ac73d1f15cc9413ec60e0dd4d7d9047e308de --- /dev/null +++ b/doc/fluid/api/layers/TrainingHelper.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_TrainingHelper: + +TrainingHelper +-------------- + +.. autoclass:: paddle.fluid.layers.TrainingHelper + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/layers/fill_constant_batch_size_like.rst b/doc/fluid/api/layers/fill_constant_batch_size_like.rst new file mode 100644 index 0000000000000000000000000000000000000000..ae7abaea85f6382382eaf18bde3e045ee7d222f2 --- /dev/null +++ b/doc/fluid/api/layers/fill_constant_batch_size_like.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_fill_constant_batch_size_like: + +fill_constant_batch_size_like +----------------------------- + +.. autofunction:: paddle.fluid.layers.fill_constant_batch_size_like + :noindex: + diff --git a/doc/fluid/api/layers/gaussian_random_batch_size_like.rst b/doc/fluid/api/layers/gaussian_random_batch_size_like.rst new file mode 100644 index 0000000000000000000000000000000000000000..f57989de190118d2e0deb05726e43f1958d68fce --- /dev/null +++ b/doc/fluid/api/layers/gaussian_random_batch_size_like.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_gaussian_random_batch_size_like: + +gaussian_random_batch_size_like +------------------------------- + +.. autofunction:: paddle.fluid.layers.gaussian_random_batch_size_like + :noindex: + diff --git a/doc/fluid/api/layers/inplace_abn.rst b/doc/fluid/api/layers/inplace_abn.rst new file mode 100644 index 0000000000000000000000000000000000000000..b3b31942f37c7cb43a5d95f1d6965acaf08efdca --- /dev/null +++ b/doc/fluid/api/layers/inplace_abn.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_inplace_abn: + +inplace_abn +----------- + +.. autofunction:: paddle.fluid.layers.inplace_abn + :noindex: + diff --git a/doc/fluid/api/layers/uniform_random_batch_size_like.rst b/doc/fluid/api/layers/uniform_random_batch_size_like.rst new file mode 100644 index 0000000000000000000000000000000000000000..8d2ea2d33afb508decec030d1edfd0556d01ad56 --- /dev/null +++ b/doc/fluid/api/layers/uniform_random_batch_size_like.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_fluid_layers_uniform_random_batch_size_like: + +uniform_random_batch_size_like +------------------------------ + +.. autofunction:: paddle.fluid.layers.uniform_random_batch_size_like + :noindex: + diff --git a/doc/fluid/api/nn.rst b/doc/fluid/api/nn.rst new file mode 100644 index 0000000000000000000000000000000000000000..362b033a8d8d7bfd58bc4a8bb035c66db3db2d2c --- /dev/null +++ b/doc/fluid/api/nn.rst @@ -0,0 +1,8 @@ +========= +paddle.nn +========= + +.. toctree:: + :maxdepth: 1 + + nn/loss.rst diff --git a/doc/fluid/api/nn/loss.rst b/doc/fluid/api/nn/loss.rst new file mode 100644 index 0000000000000000000000000000000000000000..c9b096802c039606f09c6373081e402b5302b068 --- /dev/null +++ b/doc/fluid/api/nn/loss.rst @@ -0,0 +1,8 @@ +==== +loss +==== + +.. toctree:: + :maxdepth: 1 + + loss/L1Loss.rst diff --git a/doc/fluid/api/nn/loss/L1Loss.rst b/doc/fluid/api/nn/loss/L1Loss.rst new file mode 100644 index 0000000000000000000000000000000000000000..161cb38c80a87c4ba38ed685133a705811ec9103 --- /dev/null +++ b/doc/fluid/api/nn/loss/L1Loss.rst @@ -0,0 +1,13 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_nn_loss_L1Loss: + +L1Loss +------ + +.. autoclass:: paddle.nn.loss.L1Loss + :members: + :inherited-members: + :noindex: + diff --git a/doc/fluid/api/optimizer/RecomputeOptimizer.rst b/doc/fluid/api/optimizer/RecomputeOptimizer.rst index 5e9af01cb877d02b49b5ffe13d70a7a3237a6a29..479037eebbb22fa8ea02951ed6e380d5753fb171 100644 --- a/doc/fluid/api/optimizer/RecomputeOptimizer.rst +++ b/doc/fluid/api/optimizer/RecomputeOptimizer.rst @@ -9,5 +9,6 @@ RecomputeOptimizer .. autoclass:: paddle.fluid.optimizer.RecomputeOptimizer :members: :inherited-members: - :exclude-members: minimize, load, clear_gradients, current_step_lr, set_dict, state_dict + :exclude-members: apply_gradients, apply_optimize, backward, load :noindex: + diff --git a/doc/fluid/api/tensor.rst b/doc/fluid/api/tensor.rst new file mode 100644 index 0000000000000000000000000000000000000000..1255d761e1a18b1d0cc42a369afb01080f4cbce5 --- /dev/null +++ b/doc/fluid/api/tensor.rst @@ -0,0 +1,9 @@ +============= +paddle.tensor +============= + +.. toctree:: + :maxdepth: 1 + + tensor/math.rst + tensor/random.rst diff --git a/doc/fluid/api/tensor/math.rst b/doc/fluid/api/tensor/math.rst new file mode 100644 index 0000000000000000000000000000000000000000..1b28cfecb50c699967f74c9788e120644dab688e --- /dev/null +++ b/doc/fluid/api/tensor/math.rst @@ -0,0 +1,18 @@ +==== +math +==== + +.. toctree:: + :maxdepth: 1 + + math/add.rst + math/atan.rst + math/div.rst + math/elementwise_sum.rst + math/mm.rst + math/mul.rst + math/pow.rst + math/sin.rst + math/sqrt.rst + math/sum.rst + math/tanh.rst diff --git a/doc/fluid/api/tensor/math/add.rst b/doc/fluid/api/tensor/math/add.rst new file mode 100644 index 0000000000000000000000000000000000000000..0b604ac2d1805066bfa24f8a12c8fbed36b14d0d --- /dev/null +++ b/doc/fluid/api/tensor/math/add.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_add: + +add +--- + +.. autofunction:: paddle.tensor.math.add + :noindex: + diff --git a/doc/fluid/api/tensor/math/atan.rst b/doc/fluid/api/tensor/math/atan.rst new file mode 100644 index 0000000000000000000000000000000000000000..31b11dbbe4fbc39d7f5c472478cea1544edfefe7 --- /dev/null +++ b/doc/fluid/api/tensor/math/atan.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_atan: + +atan +---- + +.. autofunction:: paddle.tensor.math.atan + :noindex: + diff --git a/doc/fluid/api/tensor/math/div.rst b/doc/fluid/api/tensor/math/div.rst new file mode 100644 index 0000000000000000000000000000000000000000..cf8397dbffc36f895319dced427487e7f3851d40 --- /dev/null +++ b/doc/fluid/api/tensor/math/div.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_div: + +div +--- + +.. autofunction:: paddle.tensor.math.div + :noindex: + diff --git a/doc/fluid/api/tensor/math/elementwise_sum.rst b/doc/fluid/api/tensor/math/elementwise_sum.rst new file mode 100644 index 0000000000000000000000000000000000000000..05acb3f78f66192b5eea938cdd528b56da247a22 --- /dev/null +++ b/doc/fluid/api/tensor/math/elementwise_sum.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_elementwise_sum: + +elementwise_sum +--------------- + +.. autofunction:: paddle.tensor.math.elementwise_sum + :noindex: + diff --git a/doc/fluid/api/tensor/math/mm.rst b/doc/fluid/api/tensor/math/mm.rst new file mode 100644 index 0000000000000000000000000000000000000000..8668c44055f25025ae080b3a08cce39919cd888b --- /dev/null +++ b/doc/fluid/api/tensor/math/mm.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_mm: + +mm +-- + +.. autofunction:: paddle.tensor.math.mm + :noindex: + diff --git a/doc/fluid/api/tensor/math/mul.rst b/doc/fluid/api/tensor/math/mul.rst new file mode 100644 index 0000000000000000000000000000000000000000..9b14559a4a35c701b8169cf425c1e8787db3561c --- /dev/null +++ b/doc/fluid/api/tensor/math/mul.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_mul: + +mul +--- + +.. autofunction:: paddle.tensor.math.mul + :noindex: + diff --git a/doc/fluid/api/tensor/math/pow.rst b/doc/fluid/api/tensor/math/pow.rst new file mode 100644 index 0000000000000000000000000000000000000000..5d0da558dd738aee845ef01c14d62ba4f023e921 --- /dev/null +++ b/doc/fluid/api/tensor/math/pow.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_pow: + +pow +--- + +.. autofunction:: paddle.tensor.math.pow + :noindex: + diff --git a/doc/fluid/api/tensor/math/sin.rst b/doc/fluid/api/tensor/math/sin.rst new file mode 100644 index 0000000000000000000000000000000000000000..862334131da6f38a853fcff1ed5860db625561ae --- /dev/null +++ b/doc/fluid/api/tensor/math/sin.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_sin: + +sin +--- + +.. autofunction:: paddle.tensor.math.sin + :noindex: + diff --git a/doc/fluid/api/tensor/math/sqrt.rst b/doc/fluid/api/tensor/math/sqrt.rst new file mode 100644 index 0000000000000000000000000000000000000000..c0ad257993458844e18e514731f988b289a8e73f --- /dev/null +++ b/doc/fluid/api/tensor/math/sqrt.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_sqrt: + +sqrt +---- + +.. autofunction:: paddle.tensor.math.sqrt + :noindex: + diff --git a/doc/fluid/api/tensor/math/sum.rst b/doc/fluid/api/tensor/math/sum.rst new file mode 100644 index 0000000000000000000000000000000000000000..8946b3aa5056818046793ac856962c6ee4e0d175 --- /dev/null +++ b/doc/fluid/api/tensor/math/sum.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_sum: + +sum +--- + +.. autofunction:: paddle.tensor.math.sum + :noindex: + diff --git a/doc/fluid/api/tensor/math/tanh.rst b/doc/fluid/api/tensor/math/tanh.rst new file mode 100644 index 0000000000000000000000000000000000000000..ceb5971e0c3e51565f9fedec4df881eab5f86396 --- /dev/null +++ b/doc/fluid/api/tensor/math/tanh.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_math_tanh: + +tanh +---- + +.. autofunction:: paddle.tensor.math.tanh + :noindex: + diff --git a/doc/fluid/api/tensor/random.rst b/doc/fluid/api/tensor/random.rst new file mode 100644 index 0000000000000000000000000000000000000000..c83d597f154c61ba799b00cbb49872febcde787a --- /dev/null +++ b/doc/fluid/api/tensor/random.rst @@ -0,0 +1,9 @@ +====== +random +====== + +.. toctree:: + :maxdepth: 1 + + random/randint.rst + random/randperm.rst diff --git a/doc/fluid/api/tensor/random/randint.rst b/doc/fluid/api/tensor/random/randint.rst new file mode 100644 index 0000000000000000000000000000000000000000..e5a9d6139f425536ef05ab9ef28f3fba625ce7ad --- /dev/null +++ b/doc/fluid/api/tensor/random/randint.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_random_randint: + +randint +------- + +.. autofunction:: paddle.tensor.random.randint + :noindex: + diff --git a/doc/fluid/api/tensor/random/randperm.rst b/doc/fluid/api/tensor/random/randperm.rst new file mode 100644 index 0000000000000000000000000000000000000000..0aa4cc612db88a78abc8b3bb91fc347bed5b6f5a --- /dev/null +++ b/doc/fluid/api/tensor/random/randperm.rst @@ -0,0 +1,11 @@ +.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` + !DO NOT EDIT THIS FILE MANUALLY! + +.. _api_tensor_random_randperm: + +randperm +-------- + +.. autofunction:: paddle.tensor.random.randperm + :noindex: + diff --git a/doc/fluid/api_cn/framework_cn.rst b/doc/fluid/api_cn/framework_cn.rst new file mode 100644 index 0000000000000000000000000000000000000000..9fe6f3fc8da3edfb79a7a4359477d3c8db3f1aa1 --- /dev/null +++ b/doc/fluid/api_cn/framework_cn.rst @@ -0,0 +1,13 @@ +======================= +paddle.framework +======================= + + + + +.. toctree:: + :maxdepth: 1 + + framework_cn/get_default_dtype.rst + framework_cn/manual_seed.rst + framework_cn/set_default_dtype.rst diff --git a/doc/fluid/api_cn/framework_cn/get_default_dtype.rst b/doc/fluid/api_cn/framework_cn/get_default_dtype.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/framework_cn/manual_seed.rst b/doc/fluid/api_cn/framework_cn/manual_seed.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/framework_cn/set_default_dtype.rst b/doc/fluid/api_cn/framework_cn/set_default_dtype.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/index_cn.rst b/doc/fluid/api_cn/index_cn.rst index 4e7245c7e01b34b2c53fb3d3e692e07952febc9c..8599fb58c60845168918446808735b2cec68951d 100644 --- a/doc/fluid/api_cn/index_cn.rst +++ b/doc/fluid/api_cn/index_cn.rst @@ -7,6 +7,7 @@ API Reference ../api_guides/index_cn.rst fluid_cn.rst + api_tree_cn.rst backward_cn.rst clip_cn.rst dataset_cn.rst diff --git a/doc/fluid/api_cn/nn_cn.rst b/doc/fluid/api_cn/nn_cn.rst new file mode 100644 index 0000000000000000000000000000000000000000..a17a6f6bb15065233095e3aeb44d8d4f246e894f --- /dev/null +++ b/doc/fluid/api_cn/nn_cn.rst @@ -0,0 +1,20 @@ +======================= +paddle.nn +======================= + + + + +.. toctree:: + :maxdepth: 1 + + nn_cn/Conv1D.rst + nn_cn/Conv2D.rst + nn_cn/diag_embed.rst + nn_cn/interpolate.rst + nn_cn/Linear.rst + nn_cn/log_softmax.rst + nn_cn/ReLU.rst + nn_cn/Upsample.rst + nn_cn/activation_cn.rst + nn_cn/loss_cn.rst diff --git a/doc/fluid/api_cn/nn_cn/Conv1D.rst b/doc/fluid/api_cn/nn_cn/Conv1D.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/Conv2D.rst b/doc/fluid/api_cn/nn_cn/Conv2D.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/Linear.rst b/doc/fluid/api_cn/nn_cn/Linear.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/ReLU.rst b/doc/fluid/api_cn/nn_cn/ReLU.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/Upsample.rst b/doc/fluid/api_cn/nn_cn/Upsample.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/activation_cn.rst b/doc/fluid/api_cn/nn_cn/activation_cn.rst new file mode 100644 index 0000000000000000000000000000000000000000..dadd26afbd650666203b019aaf4e62d60b23bd3e --- /dev/null +++ b/doc/fluid/api_cn/nn_cn/activation_cn.rst @@ -0,0 +1,11 @@ +======================= +activation +======================= + + + + +.. toctree:: + :maxdepth: 1 + + activation_cn/Sigmoid.rst diff --git a/doc/fluid/api_cn/nn_cn/activation_cn/Sigmoid.rst b/doc/fluid/api_cn/nn_cn/activation_cn/Sigmoid.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/diag_embed.rst b/doc/fluid/api_cn/nn_cn/diag_embed.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/interpolate.rst b/doc/fluid/api_cn/nn_cn/interpolate.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/log_softmax.rst b/doc/fluid/api_cn/nn_cn/log_softmax.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/loss_cn.rst b/doc/fluid/api_cn/nn_cn/loss_cn.rst new file mode 100644 index 0000000000000000000000000000000000000000..074f66312a2c3dcfeee6d3c16c5f052837fb5018 --- /dev/null +++ b/doc/fluid/api_cn/nn_cn/loss_cn.rst @@ -0,0 +1,15 @@ +======================= +loss +======================= + + + + +.. toctree:: + :maxdepth: 1 + + loss_cn/BCELoss.rst + loss_cn/CrossEntropyLoss.rst + loss_cn/L1Loss.rst + loss_cn/MSELoss.rst + loss_cn/NLLLoss.rst diff --git a/doc/fluid/api_cn/nn_cn/loss_cn/BCELoss.rst b/doc/fluid/api_cn/nn_cn/loss_cn/BCELoss.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/loss_cn/CrossEntropyLoss.rst b/doc/fluid/api_cn/nn_cn/loss_cn/CrossEntropyLoss.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/loss_cn/L1Loss.rst b/doc/fluid/api_cn/nn_cn/loss_cn/L1Loss.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/loss_cn/MSELoss.rst b/doc/fluid/api_cn/nn_cn/loss_cn/MSELoss.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/nn_cn/loss_cn/NLLLoss.rst b/doc/fluid/api_cn/nn_cn/loss_cn/NLLLoss.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn.rst b/doc/fluid/api_cn/tensor_cn.rst new file mode 100644 index 0000000000000000000000000000000000000000..4db1df4c5d5733959f9686d37209ee73c8115620 --- /dev/null +++ b/doc/fluid/api_cn/tensor_cn.rst @@ -0,0 +1,78 @@ +======================= +paddle.tensor +======================= + + + + +.. toctree:: + :maxdepth: 1 + + tensor_cn/addcmul.rst + tensor_cn/addmm.rst + tensor_cn/add.rst + tensor_cn/allclose.rst + tensor_cn/arange.rst + tensor_cn/argmax.rst + tensor_cn/atan.rst + tensor_cn/bmm.rst + tensor_cn/cholesky.rst + tensor_cn/clamp.rst + tensor_cn/concat.rst + tensor_cn/cross.rst + tensor_cn/dist.rst + tensor_cn/div.rst + tensor_cn/dot.rst + tensor_cn/einsum.rst + tensor_cn/elementwise_equal.rst + tensor_cn/elementwise_sum.rst + tensor_cn/equal.rst + tensor_cn/erf.rst + tensor_cn/eye.rst + tensor_cn/flip.rst + tensor_cn/full_like.rst + tensor_cn/full.rst + tensor_cn/gather.rst + tensor_cn/index_select.rst + tensor_cn/inverse.rst + tensor_cn/isnan.rst + tensor_cn/linspace.rst + tensor_cn/log1p.rst + tensor_cn/logsumexp.rst + tensor_cn/math.rst + tensor_cn/matmul.rst + tensor_cn/max.rst + tensor_cn/meshgrid.rst + tensor_cn/min.rst + tensor_cn/mm.rst + tensor_cn/mul.rst + tensor_cn/nonzero.rst + tensor_cn/norm.rst + tensor_cn/ones_like.rst + tensor_cn/ones.rst + tensor_cn/pow.rst + tensor_cn/randint.rst + tensor_cn/randn.rst + tensor_cn/randperm.rst + tensor_cn/rand.rst + tensor_cn/roll.rst + tensor_cn/sin.rst + tensor_cn/sort.rst + tensor_cn/split.rst + tensor_cn/sqrt.rst + tensor_cn/squeeze.rst + tensor_cn/stack.rst + tensor_cn/std.rst + tensor_cn/sum.rst + tensor_cn/tanh.rst + tensor_cn/tensordot.rst + tensor_cn/transpose.rst + tensor_cn/tril.rst + tensor_cn/triu.rst + tensor_cn/t.rst + tensor_cn/unbind.rst + tensor_cn/unsqueeze.rst + tensor_cn/var.rst + tensor_cn/where.rst + tensor_cn/zeros_like.rst + tensor_cn/zeros.rst diff --git a/doc/fluid/api_cn/tensor_cn/add.rst b/doc/fluid/api_cn/tensor_cn/add.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/addcmul.rst b/doc/fluid/api_cn/tensor_cn/addcmul.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/addmm.rst b/doc/fluid/api_cn/tensor_cn/addmm.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/allclose.rst b/doc/fluid/api_cn/tensor_cn/allclose.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/arange.rst b/doc/fluid/api_cn/tensor_cn/arange.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/argmax.rst b/doc/fluid/api_cn/tensor_cn/argmax.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/atan.rst b/doc/fluid/api_cn/tensor_cn/atan.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/bmm.rst b/doc/fluid/api_cn/tensor_cn/bmm.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/cholesky.rst b/doc/fluid/api_cn/tensor_cn/cholesky.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/clamp.rst b/doc/fluid/api_cn/tensor_cn/clamp.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/concat.rst b/doc/fluid/api_cn/tensor_cn/concat.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/cross.rst b/doc/fluid/api_cn/tensor_cn/cross.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/dist.rst b/doc/fluid/api_cn/tensor_cn/dist.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/div.rst b/doc/fluid/api_cn/tensor_cn/div.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/dot.rst b/doc/fluid/api_cn/tensor_cn/dot.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/einsum.rst b/doc/fluid/api_cn/tensor_cn/einsum.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/elementwise_equal.rst b/doc/fluid/api_cn/tensor_cn/elementwise_equal.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/elementwise_sum.rst b/doc/fluid/api_cn/tensor_cn/elementwise_sum.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/equal.rst b/doc/fluid/api_cn/tensor_cn/equal.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/erf.rst b/doc/fluid/api_cn/tensor_cn/erf.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/eye.rst b/doc/fluid/api_cn/tensor_cn/eye.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/flip.rst b/doc/fluid/api_cn/tensor_cn/flip.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/full.rst b/doc/fluid/api_cn/tensor_cn/full.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/full_like.rst b/doc/fluid/api_cn/tensor_cn/full_like.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/gather.rst b/doc/fluid/api_cn/tensor_cn/gather.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/index_select.rst b/doc/fluid/api_cn/tensor_cn/index_select.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/inverse.rst b/doc/fluid/api_cn/tensor_cn/inverse.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/isnan.rst b/doc/fluid/api_cn/tensor_cn/isnan.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/linspace.rst b/doc/fluid/api_cn/tensor_cn/linspace.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/log1p.rst b/doc/fluid/api_cn/tensor_cn/log1p.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/logsumexp.rst b/doc/fluid/api_cn/tensor_cn/logsumexp.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/math.rst b/doc/fluid/api_cn/tensor_cn/math.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/matmul.rst b/doc/fluid/api_cn/tensor_cn/matmul.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/max.rst b/doc/fluid/api_cn/tensor_cn/max.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/meshgrid.rst b/doc/fluid/api_cn/tensor_cn/meshgrid.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/min.rst b/doc/fluid/api_cn/tensor_cn/min.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/mm.rst b/doc/fluid/api_cn/tensor_cn/mm.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/mul.rst b/doc/fluid/api_cn/tensor_cn/mul.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/nonzero.rst b/doc/fluid/api_cn/tensor_cn/nonzero.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/norm.rst b/doc/fluid/api_cn/tensor_cn/norm.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/ones.rst b/doc/fluid/api_cn/tensor_cn/ones.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/ones_like.rst b/doc/fluid/api_cn/tensor_cn/ones_like.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/pow.rst b/doc/fluid/api_cn/tensor_cn/pow.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/rand.rst b/doc/fluid/api_cn/tensor_cn/rand.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/randint.rst b/doc/fluid/api_cn/tensor_cn/randint.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/randn.rst b/doc/fluid/api_cn/tensor_cn/randn.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/randperm.rst b/doc/fluid/api_cn/tensor_cn/randperm.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/roll.rst b/doc/fluid/api_cn/tensor_cn/roll.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/sin.rst b/doc/fluid/api_cn/tensor_cn/sin.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/sort.rst b/doc/fluid/api_cn/tensor_cn/sort.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/split.rst b/doc/fluid/api_cn/tensor_cn/split.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/sqrt.rst b/doc/fluid/api_cn/tensor_cn/sqrt.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/squeeze.rst b/doc/fluid/api_cn/tensor_cn/squeeze.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/stack.rst b/doc/fluid/api_cn/tensor_cn/stack.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/std.rst b/doc/fluid/api_cn/tensor_cn/std.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/sum.rst b/doc/fluid/api_cn/tensor_cn/sum.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/t.rst b/doc/fluid/api_cn/tensor_cn/t.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/tanh.rst b/doc/fluid/api_cn/tensor_cn/tanh.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/tensordot.rst b/doc/fluid/api_cn/tensor_cn/tensordot.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/transpose.rst b/doc/fluid/api_cn/tensor_cn/transpose.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/tril.rst b/doc/fluid/api_cn/tensor_cn/tril.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/triu.rst b/doc/fluid/api_cn/tensor_cn/triu.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/unbind.rst b/doc/fluid/api_cn/tensor_cn/unbind.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/unsqueeze.rst b/doc/fluid/api_cn/tensor_cn/unsqueeze.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/var.rst b/doc/fluid/api_cn/tensor_cn/var.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/where.rst b/doc/fluid/api_cn/tensor_cn/where.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/zeros.rst b/doc/fluid/api_cn/tensor_cn/zeros.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/doc/fluid/api_cn/tensor_cn/zeros_like.rst b/doc/fluid/api_cn/tensor_cn/zeros_like.rst new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391