08.machine_translation has error when is_generating=True
Created by: lujiaying
Error Info:
I0718 14:56:51.086495 26798 Util.cpp:166] commandline: --use_gpu=True --trainer_count=1
Traceback (most recent call last):
File "train.py", line 235, in <module>
main()
File "train.py", line 201, in main
is_generating, beam_size)
File "train.py", line 132, in seq_to_seq_net
max_length=max_length)
File "/usr/local/lib/python2.7/dist-packages/paddle/v2/config_base.py", line 52, in wrapped
out = f(*args, **xargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/layers.py", line 3803, in beam_search
is_generating=True)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/layers.py", line 3498, in recurrent_group
layer_outs = step(*in_args)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/layers.py", line 3793, in __real_step__
predict = gipt.after_real_step(step(*args))
File "train.py", line 65, in gru_decoder_with_attention
error_clipping_threshold=100.0))
File "/usr/local/lib/python2.7/dist-packages/paddle/v2/config_base.py", line 52, in wrapped
out = f(*args, **xargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/layers.py", line 362, in wrapper
return method(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/layers.py", line 973, in fc_layer
**ExtraLayerAttribute.to_kwargs(layer_attr))
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer/config_parser.py", line 3191, in Layer
return layer_func(name, **xargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer/config_parser.py", line 1583, in __init__
super(FCLayer, self).__init__(name, 'fc', size, inputs=inputs, **xargs)
TypeError: __init__() got an unexpected keyword argument 'error_clipping_threshold'