blei-lab / edward

A probabilistic programming language in TensorFlow. Deep generative models, variational inference.
http://edwardlib.org
Other
4.83k stars 759 forks source link

flag error #944

Open cymqqqq opened 4 years ago

cymqqqq commented 4 years ago

I got this error: TypeError Traceback (most recent call last)

in () ----> 1 tf.flags.DEFINE_string("data_dir", default="/tmp/data", help="") 2 tf.flags.DEFINE_string("out_dir", default="/tmp/out", help="") 3 tf.flags.DEFINE_integer("M", default=128, help="Batch size during training.") 4 tf.flags.DEFINE_integer("d", default=10, help="Latent dimension.") 5 tf.flags.DEFINE_integer("n_epoch", default=100, help="") TypeError: DEFINE_string() got an unexpected keyword argument 'default'
hyeon424 commented 4 years ago

Do not specify default and help, which are arguments received from the function. for instance, tf.flags.DEFINE_string("data_dir", "/tmp/data", "")