From 99af29e3f29f0392727bba312282e56a431dfc7b Mon Sep 17 00:00:00 2001 From: xuwei06 Date: Mon, 21 Aug 2017 14:17:13 -0700 Subject: [PATCH] Fix error message for img_pool_layer --- python/paddle/trainer_config_helpers/layers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/paddle/trainer_config_helpers/layers.py b/python/paddle/trainer_config_helpers/layers.py index dd6d1f7f8c6..be854c38f76 100755 --- a/python/paddle/trainer_config_helpers/layers.py +++ b/python/paddle/trainer_config_helpers/layers.py @@ -2589,7 +2589,7 @@ def img_pool_layer(input, assert type(pool_type) in [AvgPooling, MaxPooling, CudnnAvgPooling, CudnnMaxPooling], \ - "only AvgPooling and MaxPooling are supported" + "only (Cudnn)AvgPooling, (Cudnn)MaxPooling are supported" if pool_type is None: pool_type = MaxPooling() @@ -6236,11 +6236,11 @@ def kmax_sequence_score_layer(input, name=None, beam_size=1): @wrap_bias_attr_default() def scale_shift_layer(input, name=None, param_attr=None, bias_attr=None): """ - A layer applies a linear transformation to each element in each row of - the input matrix. For each element, the layer first re-scale it and then + A layer applies a linear transformation to each element in each row of + the input matrix. For each element, the layer first re-scale it and then adds a bias to it. - This layer is very like the SlopeInterceptLayer, except the scale and + This layer is very like the SlopeInterceptLayer, except the scale and bias are trainable. .. math:: -- GitLab