From 808adc346f0c4382dcddaf5e6083ebf35fc7743a Mon Sep 17 00:00:00 2001 From: Peng Li Date: Mon, 16 Oct 2017 14:48:34 +0800 Subject: [PATCH] Fix bug in computing output size of IdentityOffsetProjection --- python/paddle/trainer/config_parser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/paddle/trainer/config_parser.py b/python/paddle/trainer/config_parser.py index 098a51ab8..09c92d351 100644 --- a/python/paddle/trainer/config_parser.py +++ b/python/paddle/trainer/config_parser.py @@ -559,6 +559,9 @@ class IdentityOffsetProjection(Projection): **xargs) self.proj_conf.offset = offset + def calc_output_size(self, input_layer_config): + return 0 # depends on the outside MixedLayer + def calc_parameter_size(self, input_size, output_size): return 0 -- GitLab