Skip to content

Commit

Permalink
Fixed typo that breaks the Seq GAN
Browse files Browse the repository at this point in the history
Change 
sess.run(tf.global_variables_initializer)
to 
sess.run(tf.global_variables_initializer()) 
since it is a function.
  • Loading branch information
andreasveit authored Feb 27, 2017
1 parent 9c66353 commit 34bc676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MLE_SeqGAN/sequence_gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def main():
# config.gpu_options.per_process_gpu_memory_fraction = 0.5
config.gpu_options.allow_growth = True
sess = tf.Session(config=config)
sess.run(tf.global_variables_initializer)
sess.run(tf.global_variables_initializer())

generate_samples(sess, target_lstm, 64, 10000, positive_file)
gen_data_loader.create_batches(positive_file)
Expand Down

0 comments on commit 34bc676

Please sign in to comment.