From bc3b809efac1f85a7ae7c9004741a9a42fc4c8c0 Mon Sep 17 00:00:00 2001 From: LielinJiang Date: Thu, 21 May 2020 08:11:43 +0000 Subject: [PATCH] add hapi en directory, test=develop --- doc/fluid/api/gen_doc.py | 3 ++- doc/fluid/api/gen_doc.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/doc/fluid/api/gen_doc.py b/doc/fluid/api/gen_doc.py index 65e92c908..2f7f497f3 100644 --- a/doc/fluid/api/gen_doc.py +++ b/doc/fluid/api/gen_doc.py @@ -21,7 +21,8 @@ import contextlib import paddle.fluid as fluid import paddle.tensor as tensor import paddle.nn as nn -import paddle.complex as complex +import paddle.incubate.complex as complex +import paddle.incubate as incubate #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 f40cc340f..fe9612775 100644 --- a/doc/fluid/api/gen_doc.sh +++ b/doc/fluid/api/gen_doc.sh @@ -39,6 +39,23 @@ done python gen_doc.py --module_name "" --module_prefix "" --output nn --output_name nn --to_multiple_files True python gen_module_index.py nn paddle.nn +# hapi +for module in transforms models +do + python gen_doc.py --module_name ${module} --module_prefix ${module} --output ${module} --output_name incubate.hapi.vision --to_multiple_files True --output_dir incubate/hapi/vision + python gen_module_index.py incubate.hapi.vision.${module} ${module} +done + +for module in text callbacks distributed download loss metrics model +do + python gen_doc.py --module_name ${module} --module_prefix ${module} --output ${module} --output_name incubate.hapi --to_multiple_files True --output_dir incubate/hapi + python gen_module_index.py ${module} ${module} +done + +python gen_module_index.py incubate.hapi.vision vision +python gen_module_index.py incubate.hapi hapi +python gen_module_index.py incubate paddle.incubate + # index.rst python gen_index.py -- GitLab