diff --git a/doc/fluid/api/gen_doc.py b/doc/fluid/api/gen_doc.py index 65e92c908b471de7adc9e7281780beea0f792cde..2f7f497f39cd63508732d8388e13d254d39c699d 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 f40cc340fbaf8d958c318ffe10e159c373b44c13..fe9612775fd31bfda1fe409de47527fe3f7fee57 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