Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flag error #944

Open
cymqqqq opened this issue Jan 22, 2020 · 1 comment
Open

flag error #944

cymqqqq opened this issue Jan 22, 2020 · 1 comment

Comments

@cymqqqq
Copy link

cymqqqq commented Jan 22, 2020

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants