From 41b86d4fafac42fcb3cc222633cb859ba11077e8 Mon Sep 17 00:00:00 2001 From: Cheerego <35982308+shanyi15@users.noreply.github.com> Date: Sat, 29 Jun 2019 16:41:16 +0800 Subject: [PATCH] Cherrypick2v1.5 (#972) * add retinanet_target_assign + focal_loss (#969) * 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 | 15013 +--------------- .../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(+), 15002 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 000000000..5169917ed --- /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