提交 99af29e3 编写于 作者: X xuwei06

Fix error message for img_pool_layer

上级 d7b80f03
...@@ -2589,7 +2589,7 @@ def img_pool_layer(input, ...@@ -2589,7 +2589,7 @@ def img_pool_layer(input,
assert type(pool_type) in [AvgPooling, MaxPooling, CudnnAvgPooling, assert type(pool_type) in [AvgPooling, MaxPooling, CudnnAvgPooling,
CudnnMaxPooling], \ CudnnMaxPooling], \
"only AvgPooling and MaxPooling are supported" "only (Cudnn)AvgPooling, (Cudnn)MaxPooling are supported"
if pool_type is None: if pool_type is None:
pool_type = MaxPooling() pool_type = MaxPooling()
...@@ -6236,11 +6236,11 @@ def kmax_sequence_score_layer(input, name=None, beam_size=1): ...@@ -6236,11 +6236,11 @@ def kmax_sequence_score_layer(input, name=None, beam_size=1):
@wrap_bias_attr_default() @wrap_bias_attr_default()
def scale_shift_layer(input, name=None, param_attr=None, bias_attr=None): 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 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 the input matrix. For each element, the layer first re-scale it and then
adds a bias to it. 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. bias are trainable.
.. math:: .. math::
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册