From feaa38c353326938ec3282f4210c17c07b629dd2 Mon Sep 17 00:00:00 2001 From: slf12 Date: Mon, 4 Nov 2019 08:15:49 +0000 Subject: [PATCH] update details test=develop --- PaddleCV/ocr_recognition/attention_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PaddleCV/ocr_recognition/attention_model.py b/PaddleCV/ocr_recognition/attention_model.py index 3ee58e5c..76e0d604 100755 --- a/PaddleCV/ocr_recognition/attention_model.py +++ b/PaddleCV/ocr_recognition/attention_model.py @@ -82,8 +82,8 @@ def encoder_net(images, rnn_hidden_size=200, is_test=False, use_cudnn=True): filter_size=[conv_features.shape[2], 1]) pad_value = fluid.layers.assign(input=np.array([0.0], dtype=np.float32)) - sliced_feature_pad, output_len = fluid.layers.sequence_pad( - sliced_feature, pad_value, maxlen=48) + sliced_feature_pad, output_len = fluid.layers.sequence_pad(sliced_feature, + pad_value) para_attr = fluid.ParamAttr(initializer=fluid.initializer.Normal(0.0, 0.02)) bias_attr = fluid.ParamAttr( -- GitLab