liuyuemaicha / Adversarial-Learning-for-Neural-Dialogue-Generation-in-Tensorflow

Adversarial-Learning-for-Neural-Dialogue-Generation-in-Tensorflow
http://blog.csdn.net/liuyuemaicha/article/details/60581187
188 stars 75 forks source link

Error while running the script #18

Open Lucas1988 opened 6 years ago

Lucas1988 commented 6 years ago

Dear researchers,

I am very enthusiastic about the idea of improving artificial dialog quality by using adversarial learning techniques. That's why after reading your paper I wanted to try to run the script myself. Unfortunately, even though I used the recommended versions of Python and TensorFlow, I got the following error:

 File "/home/vergeest/.local/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1323, in fully_connected
    raise ValueError('num_outputs should be int or long, got %s.', num_outputs)
ValueError: ('num_outputs should be int or long, got %s.', Dimension(512))

I tried to solve this, but to no avail as of yet. Do you have any clue what I could do to fix this? Might it be easier/quicker to run it in a cloud environment rather than locally as well? Thanks in advance!