thomasmesnard / DeepMind-Teaching-Machines-to-Read-and-Comprehend

Implementation of "Teaching Machines to Read and Comprehend" proposed by Google DeepMind
MIT License
408 stars 104 forks source link

TypeError: copy() got an unexpected keyword argument 'name' #12

Open SeekPoint opened 8 years ago

SeekPoint commented 8 years ago

rzai@rzai00:~/prj/DeepMind-Teaching-Machines-to-Read-and-Comprehend$ rzai@rzai00:~/prj/DeepMind-Teaching-Machines-to-Read-and-Comprehend$ CUDA_VISIBLE_DEVICES=1 python train.py deepmind_deep_lstm Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled) No plotting extension available. <module 'config.deepmind_deep_lstm' from '/home/rzai/prj/DeepMind-Teaching-Machines-to-Read-and-Comprehend/config/deepmind_deep_lstm.pyc'> Traceback (most recent call last): File "train.py", line 53, in m = config.Model(config, ds.vocab_size) File "/home/rzai/prj/DeepMind-Teaching-Machines-to-Read-and-Comprehend/model/deep_lstm.py", line 74, in init cost = Softmax().categorical_cross_entropy(answer, probs).mean() File "/usr/local/lib/python2.7/dist-packages/blocks/bricks/base.py", line 362, in call return self.application.apply(self, *args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/blocks/bricks/base.py", line 297, in apply outputs = self.application_function(brick, args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/blocks/bricks/simple.py", line 390, in categorical_cross_entropy x.copy(name='log_probabilities')) TypeError: copy() got an unexpected keyword argument 'name' rzai@rzai00:~/prj/DeepMind-Teaching-Machines-to-Read-and-Comprehend$