From bf87c5c0049a4682e743b81125f75167c91e5433 Mon Sep 17 00:00:00 2001 From: Hao Wang <31058429+haowang101779990@users.noreply.github.com> Date: Sat, 29 Jun 2019 16:59:05 +0900 Subject: [PATCH] break up layers and change index of layers (#970) * break up layers and change index of layers * prettify script --- doc/fluid/api_cn/layers-breakdown.py | 73 + doc/fluid/api_cn/layers_cn.rst | 15135 +--------------- .../api_cn/layers_cn/control_flow_cn.rst | 971 + doc/fluid/api_cn/layers_cn/detection_cn.rst | 1689 ++ doc/fluid/api_cn/layers_cn/io_cn.rst | 582 + .../layers_cn/learning_rate_scheduler_cn.rst | 353 + doc/fluid/api_cn/layers_cn/metric_op_cn.rst | 96 + doc/fluid/api_cn/layers_cn/nn_cn.rst | 9700 ++++++++++ doc/fluid/api_cn/layers_cn/ops_cn.rst | 875 + doc/fluid/api_cn/layers_cn/tensor_cn.rst | 818 + 10 files changed, 15168 insertions(+), 15124 deletions(-) create mode 100644 doc/fluid/api_cn/layers-breakdown.py create mode 100644 doc/fluid/api_cn/layers_cn/control_flow_cn.rst create mode 100644 doc/fluid/api_cn/layers_cn/detection_cn.rst create mode 100644 doc/fluid/api_cn/layers_cn/io_cn.rst create mode 100644 doc/fluid/api_cn/layers_cn/learning_rate_scheduler_cn.rst create mode 100644 doc/fluid/api_cn/layers_cn/metric_op_cn.rst create mode 100644 doc/fluid/api_cn/layers_cn/nn_cn.rst create mode 100644 doc/fluid/api_cn/layers_cn/ops_cn.rst create mode 100644 doc/fluid/api_cn/layers_cn/tensor_cn.rst diff --git a/doc/fluid/api_cn/layers-breakdown.py b/doc/fluid/api_cn/layers-breakdown.py new file mode 100644 index 0000000000000..5169917ed54d1 --- /dev/null +++ b/doc/fluid/api_cn/layers-breakdown.py @@ -0,0 +1,73 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8 -*- +""" +Created on Tue Jun 25 21:36:04 2019 + + +break down layers_cn to its sub categories + +@author: haowang101779990 +""" + +import sys +import os +import re + +stdi,stdo,stde=sys.stdin,sys.stdout,sys.stderr +reload(sys) +sys.stdin,sys.stdout,sys.stderr=stdi,stdo,stde +sys.setdefaultencoding('utf-8') + +srcfile=open("layers_cn.rst",'r') +srclines=srcfile.readlines() +srcfile.close() + +titles={} + +i=0 +while i