From 91a4064e35bb30dc73420f8e5f0c4525ac2765ed Mon Sep 17 00:00:00 2001 From: liaogang Date: Mon, 7 Nov 2016 16:17:36 +0800 Subject: [PATCH] Follow comments --- python/paddle/trainer_config_helpers/layers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/paddle/trainer_config_helpers/layers.py b/python/paddle/trainer_config_helpers/layers.py index bf722fb1ba4..038f4d32a58 100644 --- a/python/paddle/trainer_config_helpers/layers.py +++ b/python/paddle/trainer_config_helpers/layers.py @@ -1292,7 +1292,7 @@ def bilinear_interp_layer(input, assert input.layer_type == LayerType.CONV_LAYER assert isinstance(input.activation, LinearActivation) assert out_size_x > 0 and out_size_y > 0 - assert input.numfilters is not None + assert input.num_filters is not None num_channels = input.num_filters Layer(name=name, inputs=Input(input.name, @@ -1301,8 +1301,7 @@ def bilinear_interp_layer(input, num_channels=num_channels)), type=LayerType.BILINEAR_INTERP_LAYER, **ExtraLayerAttribute.to_kwargs(layer_attr)) - return LayerOutput(name, LayerType.BILINEAR_INTERP_LAYER, parents=[input], - num_filters=num_filters) + return LayerOutput(name, LayerType.BILINEAR_INTERP_LAYER, parents=[input]) @wrap_name_default() @layer_support() -- GitLab