Traceback (most recent call last):
File "/home/gan/eclipse-workspace/SeqGAN-master/sequence_gan.py", line 182, in
main()
File "/home/gan/eclipse-workspace/SeqGAN-master/sequence_gan.py", line 91, in main
generator = Generator(vocab_size, BATCH_SIZE, EMB_DIM, HIDDEN_DIM, SEQ_LENGTH, START_TOKEN)
File "/home/gan/eclipse-workspace/SeqGAN-master/generator.py", line 43, in init
self.h0 = tf.stack(values, name)([self.h0, self.h0])
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 817, in stack
value_shape = ops.convert_to_tensor(values[0], name=name).get_shape()
TypeError: 'type' object has no attribute 'getitem'
Traceback (most recent call last): File "/home/gan/eclipse-workspace/SeqGAN-master/sequence_gan.py", line 182, in
main()
File "/home/gan/eclipse-workspace/SeqGAN-master/sequence_gan.py", line 91, in main
generator = Generator(vocab_size, BATCH_SIZE, EMB_DIM, HIDDEN_DIM, SEQ_LENGTH, START_TOKEN)
File "/home/gan/eclipse-workspace/SeqGAN-master/generator.py", line 43, in init
self.h0 = tf.stack(values, name)([self.h0, self.h0])
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 817, in stack value_shape = ops.convert_to_tensor(values[0], name=name).get_shape() TypeError: 'type' object has no attribute 'getitem'