From 630b27ec10721dce6cf56a15dc1502e931733fb5 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Fri, 26 May 2017 10:54:22 +0800 Subject: [PATCH] Compatible with previous configurations --- python/paddle/trainer_config_helpers/layers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/paddle/trainer_config_helpers/layers.py b/python/paddle/trainer_config_helpers/layers.py index 5a1e31c29d5..2b4b4dea890 100755 --- a/python/paddle/trainer_config_helpers/layers.py +++ b/python/paddle/trainer_config_helpers/layers.py @@ -245,6 +245,9 @@ class AggregateLevel(object): """ TO_NO_SEQUENCE = 'non-seq' TO_SEQUENCE = 'seq' + # compatible with previous configuration + EACH_TIMESTEP = TO_NO_SEQUENCE + EACH_SEQUENCE = TO_SEQUENCE class LayerOutput(object): @@ -1487,6 +1490,8 @@ class ExpandLevel(object): """ FROM_NO_SEQUENCE = AggregateLevel.TO_NO_SEQUENCE FROM_SEQUENCE = AggregateLevel.TO_SEQUENCE + # compatible with previous configuration + FROM_TIMESTEP = FROM_NO_SEQUENCE @wrap_name_default() -- GitLab