未验证 提交 af6da442 编写于 作者: Y Yibing Liu 提交者: GitHub

Init doc preview for paddle.complex (#2013)

上级 09d2aa49
...@@ -14,6 +14,7 @@ fluid.dygraph ...@@ -14,6 +14,7 @@ fluid.dygraph
dygraph/Conv3DTranspose.rst dygraph/Conv3DTranspose.rst
dygraph/CosineDecay.rst dygraph/CosineDecay.rst
dygraph/DataParallel.rst dygraph/DataParallel.rst
dygraph/declarative.rst
dygraph/disable_dygraph.rst dygraph/disable_dygraph.rst
dygraph/Dropout.rst dygraph/Dropout.rst
dygraph/dygraph_to_static_code.rst dygraph/dygraph_to_static_code.rst
...@@ -28,6 +29,7 @@ fluid.dygraph ...@@ -28,6 +29,7 @@ fluid.dygraph
dygraph/GroupNorm.rst dygraph/GroupNorm.rst
dygraph/GRUUnit.rst dygraph/GRUUnit.rst
dygraph/guard.rst dygraph/guard.rst
dygraph/InstanceNorm.rst
dygraph/InverseTimeDecay.rst dygraph/InverseTimeDecay.rst
dygraph/Layer.rst dygraph/Layer.rst
dygraph/LayerList.rst dygraph/LayerList.rst
...@@ -45,6 +47,7 @@ fluid.dygraph ...@@ -45,6 +47,7 @@ fluid.dygraph
dygraph/Pool2D.rst dygraph/Pool2D.rst
dygraph/PRelu.rst dygraph/PRelu.rst
dygraph/prepare_context.rst dygraph/prepare_context.rst
dygraph/ProgramTranslator.rst
dygraph/save_dygraph.rst dygraph/save_dygraph.rst
dygraph/Sequential.rst dygraph/Sequential.rst
dygraph/SpectralNorm.rst dygraph/SpectralNorm.rst
......
...@@ -7,6 +7,7 @@ fluid ...@@ -7,6 +7,7 @@ fluid
fluid/BuildStrategy.rst fluid/BuildStrategy.rst
fluid/CompiledProgram.rst fluid/CompiledProgram.rst
fluid/ComplexVariable.rst
fluid/cpu_places.rst fluid/cpu_places.rst
fluid/CPUPlace.rst fluid/CPUPlace.rst
fluid/create_lod_tensor.rst fluid/create_lod_tensor.rst
......
...@@ -21,6 +21,7 @@ import contextlib ...@@ -21,6 +21,7 @@ import contextlib
import paddle.fluid as fluid import paddle.fluid as fluid
import paddle.tensor as tensor import paddle.tensor as tensor
import paddle.nn as nn import paddle.nn as nn
import paddle.complex as complex
#import paddle.framework as framework #import paddle.framework as framework
def parse_arg(): def parse_arg():
......
...@@ -25,5 +25,14 @@ done ...@@ -25,5 +25,14 @@ done
python gen_module_index.py nn paddle.nn python gen_module_index.py nn paddle.nn
for module in math
do
python gen_doc.py --module_name tensor.${module} --module_prefix tensor.${module} --output tensor/${module} --output_name complex --to_multiple_files True --output_dir complex
python gen_module_index.py complex.tensor.${module} ${module}
done
python gen_module_index.py complex.tensor tensor
python gen_module_index.py complex paddle.complex
python gen_index.py python gen_index.py
...@@ -6,6 +6,7 @@ API Reference ...@@ -6,6 +6,7 @@ API Reference
:maxdepth: 1 :maxdepth: 1
../api_guides/index_en.rst ../api_guides/index_en.rst
complex.rst
nn.rst nn.rst
tensor.rst tensor.rst
fluid.rst fluid.rst
...@@ -16,6 +17,7 @@ API Reference ...@@ -16,6 +17,7 @@ API Reference
dataset.rst dataset.rst
dygraph.rst dygraph.rst
executor.rst executor.rst
index.rst
initializer.rst initializer.rst
io.rst io.rst
layers.rst layers.rst
...@@ -24,6 +26,5 @@ API Reference ...@@ -24,6 +26,5 @@ API Reference
optimizer.rst optimizer.rst
profiler.rst profiler.rst
regularizer.rst regularizer.rst
tensor.rst
transpiler.rst transpiler.rst
unique_name.rst unique_name.rst
...@@ -5,4 +5,8 @@ loss ...@@ -5,4 +5,8 @@ loss
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
loss/BCELoss.rst
loss/CrossEntropyLoss.rst
loss/L1Loss.rst loss/L1Loss.rst
loss/MSELoss.rst
loss/NLLLoss.rst
...@@ -8,3 +8,4 @@ paddle.tensor ...@@ -8,3 +8,4 @@ paddle.tensor
tensor/linalg.rst tensor/linalg.rst
tensor/math.rst tensor/math.rst
tensor/random.rst tensor/random.rst
tensor/stat.rst
...@@ -6,9 +6,16 @@ math ...@@ -6,9 +6,16 @@ math
:maxdepth: 1 :maxdepth: 1
math/add.rst math/add.rst
math/addcmul.rst
math/addmm.rst
math/atan.rst math/atan.rst
math/clamp.rst
math/div.rst math/div.rst
math/elementwise_sum.rst math/elementwise_sum.rst
math/log1p.rst
math/logsumexp.rst
math/max.rst
math/min.rst
math/mm.rst math/mm.rst
math/mul.rst math/mul.rst
math/pow.rst math/pow.rst
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册