[ 06.understand_sentiment ][README.cn.ipynb] infer:Duplicated layer name: word
Created by: livc
I'm updating our RegressionTest code, and I got an error when running the .py file which is converted from .ipynb file:
$ jupyter nbconvert --to python README.cn.ipynb
$ python README.cn.py
……
……
[CRITICAL 2017-07-05 11:14:25,124 layers.py:854] Duplicated layer name: word
Traceback (most recent call last):
File "tmp.py", line 427, in <module>
out = convolution_net(dict_dim, class_dim=class_dim, is_predict=True)
File "tmp.py", line 137, in convolution_net
paddle.data_type.integer_value_sequence(input_dim))
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/v2/layer.py", line 88, in __data_layer__
l = v1_layers.data_layer(name, type.dim, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/layers.py", line 350, in wrapper
return method(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/layers.py", line 854, in data_layer
**ExtraLayerAttribute.to_kwargs(layer_attr))
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer/config_parser.py", line 3136, in Layer
return layer_func(name, **xargs)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer/config_parser.py", line 1681, in __init__
name, 'data', size, inputs=[], device=device)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer/config_parser.py", line 1363, in __init__
'Duplicated layer name: %s' % name)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer/config_parser.py", line 156, in config_assert
logger.fatal(msg)
File "/usr/local/lib/python2.7/dist-packages/paddle/trainer/config_parser.py", line 3482, in my_fatal
raise Exception()
Exception