Traceback (most recent call last):


 "train.py", line 309, in <module>

main()


 "train.py", line 270, in main

model.encoder.embeddings.load_pretrained_vectors(opt.pre_word_vecs_enc)


 "/home1/yaojie/anaconda2/lib/python2.7/site-packages/torch/nn/modules/module.py", line 262, in __getattr__

type(self).__name__, name))
AttributeError: 'DataParallel' object has no attribute 'encoder'

Traceback (most recent call last):


 "<string>", line 1, in <module>


 "/usr/local/lib/python2.7/dist-packages/tensorlayer/__init__.py", line 19, in <module>

from . import layers


 "/usr/local/lib/python2.7/dist-packages/tensorlayer/layers.py", line 1939, in <module>

class RNNLayer(Layer):


 "/usr/local/lib/python2.7/dist-packages/tensorlayer/layers.py", line 2093, in RNNLayer

cell_fn = tf.nn.rnn_cell.BasicRNNCell,
AttributeError: 'module' object has no attribute 'rnn_cell'
