From 73e328e57817db7f6a82c171206528cd4cfd1e66 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 3 May 2017 07:35:56 +0000 Subject: [PATCH] Deploy to GitHub Pages: 18e5edf6a5b09868dbb083c312fe852cb8c29e55 --- .../doc/_sources/getstarted/index_en.rst.txt | 5 +- .../howto/deep_model/rnn/index_en.rst.txt | 5 - develop/doc/_sources/index_en.rst.txt | 2 - develop/doc/about/index_en.html | 35 +- develop/doc/api/index_en.html | 32 +- .../api/v1/data_provider/dataprovider_en.html | 32 +- .../v1/data_provider/pydataprovider2_en.html | 43 +- develop/doc/api/v1/index_en.html | 37 +- .../doc/api/v1/predict/swig_py_paddle_en.html | 32 +- .../trainer_config_helpers/activations.html | 49 +-- .../api/v1/trainer_config_helpers/attrs.html | 32 +- .../trainer_config_helpers/data_sources.html | 32 +- .../v1/trainer_config_helpers/evaluators.html | 61 +-- .../api/v1/trainer_config_helpers/layers.html | 155 +------ .../v1/trainer_config_helpers/networks.html | 68 +-- .../v1/trainer_config_helpers/optimizers.html | 43 +- .../v1/trainer_config_helpers/poolings.html | 39 +- develop/doc/api/v2/config/activation.html | 48 +-- develop/doc/api/v2/config/attr.html | 32 +- develop/doc/api/v2/config/layer.html | 394 +++++++++++------- develop/doc/api/v2/config/networks.html | 67 +-- develop/doc/api/v2/config/optimizer.html | 41 +- develop/doc/api/v2/config/pooling.html | 41 +- develop/doc/api/v2/data.html | 53 +-- develop/doc/api/v2/model_configs.html | 32 +- develop/doc/api/v2/run_logic.html | 38 +- develop/doc/design/api.html | 48 +-- develop/doc/design/cluster_train/README.html | 62 +-- .../design/cluster_train/checkpointing.html | 42 +- .../design/cluster_train/data_dispatch.html | 50 +-- .../00.why_plain_c.html | 47 +-- .../01.inference_implementation.html | 48 +-- develop/doc/design/reader/README.html | 51 +-- develop/doc/design/releasing_process.html | 37 +- develop/doc/genindex.html | 27 +- .../doc/getstarted/basic_usage/index_en.html | 62 +-- .../build_from_source_en.html | 53 +-- .../build_and_install/docker_install_en.html | 40 +- .../build_and_install/index_en.html | 36 +- .../build_and_install/ubuntu_install_en.html | 32 +- develop/doc/getstarted/index_en.html | 48 +-- .../doc/howto/deep_model/rnn/index_en.html | 41 +- .../howto/deep_model/rnn/rnn_config_en.html | 67 +-- .../howto/dev/contribute_to_paddle_en.html | 44 +- develop/doc/howto/dev/new_layer_en.html | 38 +- develop/doc/howto/index_en.html | 42 +- .../howto/optimization/gpu_profiling_en.html | 50 +-- .../howto/usage/cluster/cluster_train_en.html | 43 +- .../usage/cmd_parameter/arguments_en.html | 32 +- .../cmd_parameter/detail_introduction_en.html | 45 +- .../howto/usage/cmd_parameter/index_en.html | 32 +- .../usage/cmd_parameter/use_case_en.html | 50 +-- develop/doc/howto/usage/k8s/k8s_aws_en.html | 91 +--- develop/doc/howto/usage/k8s/k8s_en.html | 47 +-- .../howto/usage/k8s/src/k8s_data/README.html | 31 +- .../howto/usage/k8s/src/k8s_train/README.html | 31 +- develop/doc/index_en.html | 33 +- develop/doc/py-modindex.html | 27 +- develop/doc/search.html | 27 +- develop/doc/searchindex.js | 2 +- .../tutorials/embedding_model/index_en.html | 71 +--- develop/doc/tutorials/gan/index_en.html | 62 +-- .../image_classification/index_en.html | 63 +-- .../imagenet_model/resnet_model_en.html | 68 +-- develop/doc/tutorials/index_en.html | 52 +-- .../doc/tutorials/quick_start/index_en.html | 78 +--- develop/doc/tutorials/rec/ml_dataset_en.html | 40 +- .../doc/tutorials/rec/ml_regression_en.html | 75 +--- .../semantic_role_labeling/index_en.html | 66 +-- .../sentiment_analysis/index_en.html | 68 +-- .../tutorials/text_generation/index_en.html | 78 +--- .../_sources/getstarted/index_cn.rst.txt | 5 +- .../rnn/hierarchical_layer_cn.rst.txt | 28 +- .../howto/deep_model/rnn/index_cn.rst.txt | 1 - develop/doc_cn/_sources/index_cn.rst.txt | 1 - develop/doc_cn/about/index_cn.html | 30 +- develop/doc_cn/api/index_cn.html | 27 +- .../api/v1/data_provider/dataprovider_cn.html | 27 +- .../v1/data_provider/pydataprovider2_cn.html | 54 +-- develop/doc_cn/api/v1/index_cn.html | 32 +- .../api/v1/predict/swig_py_paddle_cn.html | 31 +- .../trainer_config_helpers/activations.html | 44 +- .../api/v1/trainer_config_helpers/attrs.html | 27 +- .../trainer_config_helpers/data_sources.html | 27 +- .../v1/trainer_config_helpers/evaluators.html | 56 +-- .../api/v1/trainer_config_helpers/layers.html | 150 +------ .../v1/trainer_config_helpers/networks.html | 63 +-- .../v1/trainer_config_helpers/optimizers.html | 38 +- .../v1/trainer_config_helpers/poolings.html | 34 +- develop/doc_cn/api/v2/config/activation.html | 43 +- develop/doc_cn/api/v2/config/attr.html | 27 +- develop/doc_cn/api/v2/config/layer.html | 389 ++++++++++------- develop/doc_cn/api/v2/config/networks.html | 62 +-- develop/doc_cn/api/v2/config/optimizer.html | 36 +- develop/doc_cn/api/v2/config/pooling.html | 36 +- develop/doc_cn/api/v2/data.html | 48 +-- develop/doc_cn/api/v2/model_configs.html | 27 +- develop/doc_cn/api/v2/run_logic.html | 33 +- develop/doc_cn/design/api.html | 43 +- .../doc_cn/design/cluster_train/README.html | 57 +-- .../design/cluster_train/checkpointing.html | 37 +- .../design/cluster_train/data_dispatch.html | 45 +- .../00.why_plain_c.html | 42 +- .../01.inference_implementation.html | 43 +- develop/doc_cn/design/reader/README.html | 46 +- develop/doc_cn/design/releasing_process.html | 32 +- develop/doc_cn/faq/index_cn.html | 52 +-- develop/doc_cn/genindex.html | 22 +- .../getstarted/basic_usage/index_cn.html | 57 +-- .../cmake/build_from_source_cn.html | 40 +- .../build_and_install/docker_install_cn.html | 33 +- .../build_and_install/index_cn.html | 31 +- .../build_and_install/ubuntu_install_cn.html | 34 +- develop/doc_cn/getstarted/index_cn.html | 43 +- .../deep_model/rnn/hierarchical_layer_cn.html | 65 +-- .../rnn/hrnn_rnn_api_compare_cn.html | 67 +-- .../doc_cn/howto/deep_model/rnn/index_cn.html | 32 +- .../deep_model/rnn/recurrent_group_cn.html | 48 +-- .../howto/deep_model/rnn/rnn_config_cn.html | 64 +-- .../howto/dev/contribute_to_paddle_cn.html | 42 +- develop/doc_cn/howto/dev/new_layer_cn.html | 33 +- develop/doc_cn/howto/dev/write_docs_cn.html | 36 +- develop/doc_cn/howto/index_cn.html | 37 +- .../howto/optimization/gpu_profiling_cn.html | 41 +- .../howto/usage/cluster/cluster_train_cn.html | 38 +- .../usage/cmd_parameter/arguments_cn.html | 27 +- .../cmd_parameter/detail_introduction_cn.html | 40 +- .../howto/usage/cmd_parameter/index_cn.html | 27 +- .../usage/cmd_parameter/use_case_cn.html | 45 +- .../howto/usage/concepts/use_concepts_cn.html | 38 +- .../doc_cn/howto/usage/k8s/k8s_basis_cn.html | 36 +- develop/doc_cn/howto/usage/k8s/k8s_cn.html | 42 +- .../howto/usage/k8s/k8s_distributed_cn.html | 42 +- .../howto/usage/k8s/src/k8s_data/README.html | 26 +- .../howto/usage/k8s/src/k8s_train/README.html | 26 +- develop/doc_cn/index_cn.html | 28 +- develop/doc_cn/py-modindex.html | 22 +- develop/doc_cn/search.html | 22 +- develop/doc_cn/searchindex.js | 2 +- .../tutorials/embedding_model/index_cn.html | 66 +-- .../image_classification/index_cn.html | 58 +-- .../imagenet_model/resnet_model_cn.html | 63 +-- develop/doc_cn/tutorials/index_cn.html | 47 +-- .../tutorials/quick_start/index_cn.html | 75 +--- .../doc_cn/tutorials/rec/ml_dataset_cn.html | 35 +- .../tutorials/rec/ml_regression_cn.html | 70 +--- .../semantic_role_labeling/index_cn.html | 61 +-- .../sentiment_analysis/index_cn.html | 63 +-- .../tutorials/text_generation/index_cn.html | 73 +--- 149 files changed, 1108 insertions(+), 6087 deletions(-) diff --git a/develop/doc/_sources/getstarted/index_en.rst.txt b/develop/doc/_sources/getstarted/index_en.rst.txt index 55d95d8015..9f771e93e8 100644 --- a/develop/doc/_sources/getstarted/index_en.rst.txt +++ b/develop/doc/_sources/getstarted/index_en.rst.txt @@ -2,7 +2,8 @@ GET STARTED ============ .. toctree:: - :maxdepth: 2 + :maxdepth: 1 build_and_install/index_en.rst - basic_usage/index_en.rst + +- `Deep Learning 101 `_ diff --git a/develop/doc/_sources/howto/deep_model/rnn/index_en.rst.txt b/develop/doc/_sources/howto/deep_model/rnn/index_en.rst.txt index 7adc79873d..13a153b05c 100644 --- a/develop/doc/_sources/howto/deep_model/rnn/index_en.rst.txt +++ b/develop/doc/_sources/howto/deep_model/rnn/index_en.rst.txt @@ -1,7 +1,2 @@ RNN Models ========== - -.. toctree:: - :maxdepth: 1 - - rnn_config_en.rst diff --git a/develop/doc/_sources/index_en.rst.txt b/develop/doc/_sources/index_en.rst.txt index 1d9cca7de7..168c7667c6 100644 --- a/develop/doc/_sources/index_en.rst.txt +++ b/develop/doc/_sources/index_en.rst.txt @@ -5,8 +5,6 @@ PaddlePaddle Documentation :maxdepth: 1 getstarted/index_en.rst - tutorials/index_en.md howto/index_en.rst api/index_en.rst about/index_en.rst - \ No newline at end of file diff --git a/develop/doc/about/index_en.html b/develop/doc/about/index_en.html index 8b4f9c122f..70a5674456 100644 --- a/develop/doc/about/index_en.html +++ b/develop/doc/about/index_en.html @@ -76,17 +76,13 @@
-
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -172,14 +152,6 @@ - -
    @@ -258,7 +230,8 @@ We hope to build an active open source community both by providing feedback and VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/index_en.html b/develop/doc/api/index_en.html index 9d420253bd..1738caea7d 100644 --- a/develop/doc/api/index_en.html +++ b/develop/doc/api/index_en.html @@ -77,17 +77,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -173,11 +153,6 @@ - -
    @@ -257,7 +232,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/data_provider/dataprovider_en.html b/develop/doc/api/v1/data_provider/dataprovider_en.html index bd14a6aa42..ee1b046476 100644 --- a/develop/doc/api/v1/data_provider/dataprovider_en.html +++ b/develop/doc/api/v1/data_provider/dataprovider_en.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,11 +151,6 @@ - -
    @@ -265,7 +240,8 @@ assures how to access each file in DataProvider.

    VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/data_provider/pydataprovider2_en.html b/develop/doc/api/v1/data_provider/pydataprovider2_en.html index 87e6974553..ed4eacccd7 100644 --- a/develop/doc/api/v1/data_provider/pydataprovider2_en.html +++ b/develop/doc/api/v1/data_provider/pydataprovider2_en.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,22 +151,6 @@ - -
    @@ -699,7 +663,8 @@ memory. VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/index_en.html b/develop/doc/api/v1/index_en.html index 37f18ee72d..d000bcdc56 100644 --- a/develop/doc/api/v1/index_en.html +++ b/develop/doc/api/v1/index_en.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,16 +151,6 @@ - -
    @@ -276,7 +246,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/predict/swig_py_paddle_en.html b/develop/doc/api/v1/predict/swig_py_paddle_en.html index 0414fb5d6f..02c77b18fd 100644 --- a/develop/doc/api/v1/predict/swig_py_paddle_en.html +++ b/develop/doc/api/v1/predict/swig_py_paddle_en.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,11 +151,6 @@ - -
    @@ -314,7 +289,8 @@ the corresponding neuron in the output layer.

    VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/trainer_config_helpers/activations.html b/develop/doc/api/v1/trainer_config_helpers/activations.html index 4494cd6b07..a8af1617c0 100644 --- a/develop/doc/api/v1/trainer_config_helpers/activations.html +++ b/develop/doc/api/v1/trainer_config_helpers/activations.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,28 +151,6 @@ - -
    @@ -391,7 +349,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/trainer_config_helpers/attrs.html b/develop/doc/api/v1/trainer_config_helpers/attrs.html index 111304c97a..4fec903a1a 100644 --- a/develop/doc/api/v1/trainer_config_helpers/attrs.html +++ b/develop/doc/api/v1/trainer_config_helpers/attrs.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,11 +151,6 @@ - -
    @@ -285,7 +260,8 @@ or list to this argument. VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/trainer_config_helpers/evaluators.html b/develop/doc/api/v1/trainer_config_helpers/evaluators.html index ae04523451..2411ba063c 100644 --- a/develop/doc/api/v1/trainer_config_helpers/evaluators.html +++ b/develop/doc/api/v1/trainer_config_helpers/evaluators.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,40 +151,6 @@ - -
    @@ -795,7 +741,8 @@ one or more input layers.

    VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/trainer_config_helpers/layers.html b/develop/doc/api/v1/trainer_config_helpers/layers.html index ef5e1c1d24..93be72a97e 100644 --- a/develop/doc/api/v1/trainer_config_helpers/layers.html +++ b/develop/doc/api/v1/trainer_config_helpers/layers.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,134 +151,6 @@ - -
    @@ -3685,7 +3537,8 @@ It is used by recurrent layer group.

    VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/trainer_config_helpers/networks.html b/develop/doc/api/v1/trainer_config_helpers/networks.html index f16d93d9f1..9769b3b4bf 100644 --- a/develop/doc/api/v1/trainer_config_helpers/networks.html +++ b/develop/doc/api/v1/trainer_config_helpers/networks.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,47 +151,6 @@ - -
    @@ -986,7 +925,8 @@ network, this method will calculate the input order by dfs travel.

    VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/trainer_config_helpers/optimizers.html b/develop/doc/api/v1/trainer_config_helpers/optimizers.html index a1b6e60870..c8f15d6a84 100644 --- a/develop/doc/api/v1/trainer_config_helpers/optimizers.html +++ b/develop/doc/api/v1/trainer_config_helpers/optimizers.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,22 +151,6 @@ - -
    @@ -486,7 +450,8 @@ clipped. VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v1/trainer_config_helpers/poolings.html b/develop/doc/api/v1/trainer_config_helpers/poolings.html index 77eda297e7..7fcbc1dd72 100644 --- a/develop/doc/api/v1/trainer_config_helpers/poolings.html +++ b/develop/doc/api/v1/trainer_config_helpers/poolings.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,18 +151,6 @@ - -
    @@ -291,7 +259,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v2/config/activation.html b/develop/doc/api/v2/config/activation.html index e19837909e..570a39e2f3 100644 --- a/develop/doc/api/v2/config/activation.html +++ b/develop/doc/api/v2/config/activation.html @@ -78,17 +78,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -174,27 +154,6 @@ - -
    @@ -434,7 +393,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v2/config/attr.html b/develop/doc/api/v2/config/attr.html index 0833280c38..ff2b03bb82 100644 --- a/develop/doc/api/v2/config/attr.html +++ b/develop/doc/api/v2/config/attr.html @@ -78,17 +78,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -174,130 +154,6 @@ - -
    @@ -1233,10 +1089,54 @@ will get a warning.

    Recurrent Layer Group

    memory

    -
    +
    -paddle.v2.layer.memory
    -

    alias of MemoryV2

    +class paddle.v2.layer.memory(name, extra_input=None, **kwargs) +

    The memory layers is a layer cross each time step. Reference this output +as previous time step layer name ‘s output.

    +

    The default memory is zero in first time step, previous time step’s +output in the rest time steps.

    +

    If boot_bias, the first time step value is this bias and +with activation.

    +

    If boot_with_const_id, then the first time stop is a IndexSlot, the +Arguments.ids()[0] is this cost_id.

    +

    If boot_layer is not null, the memory is just the boot_layer’s output. +Set is_seq is true boot layer is sequence.

    +

    The same name layer in recurrent group will set memory on each time +step.

    +
    mem = memory(size=256, name='state')
    +state = fc_layer(input=mem, size=256, name='state')
    +
    +
    +

    If you do not want to specify the name, you can equivalently use set_input() +to specify the layer needs to be remembered as the following:

    + +++ + + + + + + + +
    Parameters:
      +
    • name (basestring) – the name of the layer which this memory remembers. +If name is None, user should call set_input() to specify the +name of the layer which this memory remembers.
    • +
    • size (int) – size of memory.
    • +
    • memory_name (basestring) – the name of the memory. +It is ignored when name is provided.
    • +
    • is_seq (bool) – is sequence for boot_layer
    • +
    • boot_layer (LayerOutput|None) – boot layer of memory.
    • +
    • boot_bias (ParameterAttribute|None) – boot layer’s bias
    • +
    • boot_bias_active_type (BaseActivation) – boot layer’s active type.
    • +
    • boot_with_const_id (int) – boot layer’s id.
    • +
    +
    Returns:

    LayerOutput object which is a memory.

    +
    Return type:

    LayerOutput

    +
    @@ -1245,7 +1145,77 @@ will get a warning.
    class paddle.v2.layer.recurrent_group
    -
    +

    Recurrent layer group is an extremely flexible recurrent unit in +PaddlePaddle. As long as the user defines the calculation done within a +time step, PaddlePaddle will iterate such a recurrent calculation over +sequence input. This is extremely usefull for attention based model, or +Neural Turning Machine like models.

    +

    The basic usage (time steps) is:

    +
    def step(input):
    +    output = fc_layer(input=layer,
    +                      size=1024,
    +                      act=LinearActivation(),
    +                      bias_attr=False)
    +    return output
    +
    +group = recurrent_group(input=layer,
    +                        step=step)
    +
    +
    +

    You can see following configs for further usages:

    +
      +
    • time steps: lstmemory_group, paddle/gserver/tests/sequence_layer_group.conf, demo/seqToseq/seqToseq_net.py
    • +
    • sequence steps: paddle/gserver/tests/sequence_nest_layer_group.conf
    • +
    + +++ + + + +
    Parameters:
      +
    • step (callable) –

      recurrent one time step function.The input of this function is +input of the group. The return of this function will be +recurrent group’s return value.

      +

      The recurrent group scatter a sequence into time steps. And +for each time step, will invoke step function, and return +a time step result. Then gather each time step of output into +layer group’s output.

      +
    • +
    • name (basestring) – recurrent_group’s name.
    • +
    • input (LayerOutput|StaticInput|SubsequenceInput|list|tuple) –

      Input links array.

      +

      LayerOutput will be scattered into time steps. +SubsequenceInput will be scattered into sequence steps. +StaticInput will be imported to each time step, and doesn’t change +through time. It’s a mechanism to access layer outside step function.

      +
    • +
    • reverse (bool) – If reverse is set true, the recurrent unit will process the +input sequence in a reverse order.
    • +
    • targetInlink (LayerOutput|SubsequenceInput) –

      the input layer which share info with layer group’s output

      +

      Param input specifies multiple input layers. For +SubsequenceInput inputs, config should assign one input +layer that share info(the number of sentences and the number +of words in each sentence) with all layer group’s outputs. +targetInlink should be one of the layer group’s input.

      +
    • +
    • is_generating – If is generating, none of input type should be LayerOutput; +else, for training or testing, one of the input type must +be LayerOutput.
    • +
    +
    +

    : type is_generating: bool

    + +++ + + + + + +
    Returns:LayerOutput object.
    Return type:LayerOutput
    +
    @@ -1337,7 +1307,80 @@ from previous step.
    class paddle.v2.layer.beam_search
    -
    +

    Beam search is a heuristic search algorithm used in sequence generation. +It explores a graph by expanding the most promising nodes in a limited set +to maintain tractability.

    +

    The example usage is:

    +
    def rnn_step(input):
    +    last_time_step_output = memory(name='rnn', size=512)
    +    with mixed_layer(size=512, name='rnn') as simple_rnn:
    +        simple_rnn += full_matrix_projection(input)
    +        simple_rnn += last_time_step_output
    +    return simple_rnn
    +
    +generated_word_embedding = GeneratedInput(
    +                       size=target_dictionary_dim,
    +                       embedding_name="target_language_embedding",
    +                       embedding_size=word_vector_dim)
    +
    +beam_gen = beam_search(name="decoder",
    +                       step=rnn_step,
    +                       input=[StaticInput(encoder_last),
    +                              generated_word_embedding],
    +                       bos_id=0,
    +                       eos_id=1,
    +                       beam_size=5)
    +
    +
    +

    Please see the following demo for more details:

    +
      +
    • machine translation : demo/seqToseq/translation/gen.conf demo/seqToseq/seqToseq_net.py
    • +
    + +++ + + + + + + + +
    Parameters:
      +
    • name (base string) – Name of the recurrent unit that generates sequences.
    • +
    • step (callable) –

      A callable function that defines the calculation in a time +step, and it is applied to sequences with arbitrary length by +sharing a same set of weights.

      +

      You can refer to the first parameter of recurrent_group, or +demo/seqToseq/seqToseq_net.py for more details.

      +
    • +
    • input (list) – Input data for the recurrent unit, which should include the +previously generated words as a GeneratedInput object.
    • +
    • bos_id (int) – Index of the start symbol in the dictionary. The start symbol +is a special token for NLP task, which indicates the +beginning of a sequence. In the generation task, the start +symbol is essential, since it is used to initialize the RNN +internal state.
    • +
    • eos_id (int) – Index of the end symbol in the dictionary. The end symbol is +a special token for NLP task, which indicates the end of a +sequence. The generation process will stop once the end +symbol is generated, or a pre-defined max iteration number +is exceeded.
    • +
    • max_length (int) – Max generated sequence length.
    • +
    • beam_size (int) – Beam search for sequence generation is an iterative search +algorithm. To maintain tractability, every iteration only +only stores a predetermined number, called the beam_size, +of the most promising next words. The greater the beam +size, the fewer candidate words are pruned.
    • +
    • num_results_per_sample (int) – Number of the generated results per input +sequence. This number must always be less than +beam size.
    • +
    +
    Returns:

    The generated word index.

    +
    Return type:

    LayerOutput

    +
    +
    @@ -1381,7 +1424,51 @@ multiple outputs.
    class paddle.v2.layer.mixed
    -
    +

    Mixed Layer. A mixed layer will add all inputs together, then activate. +Each inputs is a projection or operator.

    +

    There are two styles of usages.

    +
      +
    1. When not set inputs parameter, use mixed_layer like this:
    2. +
    +
    with mixed_layer(size=256) as m:
    +    m += full_matrix_projection(input=layer1)
    +    m += identity_projection(input=layer2)
    +
    +
    +
      +
    1. You can also set all inputs when invoke mixed_layer as follows:
    2. +
    +
    m = mixed_layer(size=256,
    +                input=[full_matrix_projection(input=layer1),
    +                       full_matrix_projection(input=layer2)])
    +
    +
    + +++ + + + + + + + +
    Parameters:
      +
    • name (basestring) – mixed layer name. Can be referenced by other layer.
    • +
    • size (int) – layer size.
    • +
    • input – inputs layer. It is an optional parameter. If set, +then this function will just return layer’s name.
    • +
    • act (BaseActivation) – Activation Type.
    • +
    • bias_attr (ParameterAttribute or None or bool) – The Bias Attribute. If no bias, then pass False or +something not type of ParameterAttribute. None will get a +default Bias.
    • +
    • layer_attr (ExtraLayerAttribute) – The extra layer config. Default is None.
    • +
    +
    Returns:

    MixedLayerType object can add inputs or layer name.

    +
    Return type:

    MixedLayerType

    +
    +
    @@ -3420,7 +3507,8 @@ It is used by recurrent layer group.

    VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v2/config/networks.html b/develop/doc/api/v2/config/networks.html index f1fc6d6a3d..3965aa50da 100644 --- a/develop/doc/api/v2/config/networks.html +++ b/develop/doc/api/v2/config/networks.html @@ -78,17 +78,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -174,46 +154,6 @@ - -
    @@ -981,7 +921,8 @@ compute attention weight. VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v2/config/optimizer.html b/develop/doc/api/v2/config/optimizer.html index 96461826e5..01071e7410 100644 --- a/develop/doc/api/v2/config/optimizer.html +++ b/develop/doc/api/v2/config/optimizer.html @@ -78,17 +78,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -174,20 +154,6 @@ - -
    @@ -435,7 +401,8 @@ w & = w - \frac{\eta} {\sqrt{v(w,t) + \epsilon}} \nabla Q_{i}(w)\end{split}\ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v2/config/pooling.html b/develop/doc/api/v2/config/pooling.html index 839e7f6457..7871dfcc7d 100644 --- a/develop/doc/api/v2/config/pooling.html +++ b/develop/doc/api/v2/config/pooling.html @@ -78,17 +78,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -174,20 +154,6 @@ - -
    @@ -360,7 +326,8 @@ pooling window.

    VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v2/data.html b/develop/doc/api/v2/data.html index be72b70128..84aef6c186 100644 --- a/develop/doc/api/v2/data.html +++ b/develop/doc/api/v2/data.html @@ -78,17 +78,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -174,32 +154,6 @@ - -
    @@ -1345,7 +1299,8 @@ sequence.

    VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v2/model_configs.html b/develop/doc/api/v2/model_configs.html index 1945045bd4..a6ea1f333f 100644 --- a/develop/doc/api/v2/model_configs.html +++ b/develop/doc/api/v2/model_configs.html @@ -78,17 +78,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -174,11 +154,6 @@ - -
    @@ -263,7 +238,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/api/v2/run_logic.html b/develop/doc/api/v2/run_logic.html index 88a3958bbd..cd2522ec13 100644 --- a/develop/doc/api/v2/run_logic.html +++ b/develop/doc/api/v2/run_logic.html @@ -78,17 +78,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -174,17 +154,6 @@ - -
    @@ -606,7 +575,8 @@ or max_id. VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/design/api.html b/develop/doc/design/api.html index b6178cdcd2..4c6aba5830 100644 --- a/develop/doc/design/api.html +++ b/develop/doc/design/api.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,27 +151,6 @@ - -
    @@ -487,7 +446,8 @@ parameter server.

    VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/design/cluster_train/README.html b/develop/doc/design/cluster_train/README.html index 1dfcb0d268..9f91cdc3c2 100644 --- a/develop/doc/design/cluster_train/README.html +++ b/develop/doc/design/cluster_train/README.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,41 +151,6 @@ - -
    @@ -444,7 +389,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/design/cluster_train/checkpointing.html b/develop/doc/design/cluster_train/checkpointing.html index f1761674d1..6b321d31e7 100644 --- a/develop/doc/design/cluster_train/checkpointing.html +++ b/develop/doc/design/cluster_train/checkpointing.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,21 +151,6 @@ - -
    @@ -299,7 +264,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/design/cluster_train/data_dispatch.html b/develop/doc/design/cluster_train/data_dispatch.html index 68ebb27a33..b5e2487943 100644 --- a/develop/doc/design/cluster_train/data_dispatch.html +++ b/develop/doc/design/cluster_train/data_dispatch.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,29 +151,6 @@ - -
    @@ -367,7 +324,8 @@ random_images-00099-of-00099 VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/design/multi_language_interface/00.why_plain_c.html b/develop/doc/design/multi_language_interface/00.why_plain_c.html index 0df6002fcb..cf45c569b1 100644 --- a/develop/doc/design/multi_language_interface/00.why_plain_c.html +++ b/develop/doc/design/multi_language_interface/00.why_plain_c.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,26 +151,6 @@ - -
    @@ -390,7 +350,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/design/multi_language_interface/01.inference_implementation.html b/develop/doc/design/multi_language_interface/01.inference_implementation.html index 74f1f72b79..43447a3730 100644 --- a/develop/doc/design/multi_language_interface/01.inference_implementation.html +++ b/develop/doc/design/multi_language_interface/01.inference_implementation.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,27 +151,6 @@ - -
    @@ -390,7 +349,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/design/reader/README.html b/develop/doc/design/reader/README.html index 0198bdbacf..4de366bd53 100644 --- a/develop/doc/design/reader/README.html +++ b/develop/doc/design/reader/README.html @@ -75,17 +75,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -171,16 +151,6 @@ - -
    @@ -307,7 +277,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/genindex.html b/develop/doc/genindex.html index 9e43614f01..ee5993c9cb 100644 --- a/develop/doc/genindex.html +++ b/develop/doc/genindex.html @@ -76,17 +76,13 @@
    -
  • Simple Linear Regression
  • - - -
  • TUTORIALS
  • HOW TO
  • @@ -288,7 +268,8 @@ VERSION:'', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', - HAS_SOURCE: true + HAS_SOURCE: true, + SOURCELINK_SUFFIX: ".txt", }; diff --git a/develop/doc/getstarted/basic_usage/index_en.html b/develop/doc/getstarted/basic_usage/index_en.html index 83e4024082..974ef3ce8a 100644 --- a/develop/doc/getstarted/basic_usage/index_en.html +++ b/develop/doc/getstarted/basic_usage/index_en.html @@ -32,10 +32,7 @@ - - - - + @@ -78,17 +75,13 @@