-
Notifications
You must be signed in to change notification settings - Fork 104
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
The bug of Unknown command line flag 'pad_idx' #12
Comments
Hey there, I have re-implemented this paper and achieved the exact same results. I also solved the problem which was resulting in this code being 5X slower. |
@Humanity123 |
@Aron9080 |
@Humanity123 |
@Humanity123 |
@Aron9080 |
@Humanity123 |
@Aron9080 |
@Humanity123 |
@Humanity123 |
@Aron9080 |
@Humanity123 |
@Aron9080 |
@Humanity123 |
@Humanity123 |
Hey @Humanity123 I just came across this thread, and downloaded your repo. I too am getting the same If I comment that line, I get the same error with flag I think these flags were probably defined in TF v1.4.1, but may have been removed in subsequent versions. The fix that worked for me is to add the following lines to define the tags causing the errors:
After this got fixed, the error I get is the following:
It seems the
Is there some problem reading the |
@Aron9080 ,Hello, I met the same problem with you, how did you solve it? |
Hi, I have met the below error when the program was run, how to fix it?
Traceback (most recent call last):
File "main.py", line 63, in
tf.app.run()
File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 126, in run
_sys.exit(main(argv))
File "main.py", line 47, in main
FLAGS.pad_idx = source_word2idx['']
File "/Library/Python/2.7/site-packages/tensorflow/python/platform/flags.py", line 88, in setattr
return self.dict['__wrapped'].setattr(name, value)
File "/Library/Python/2.7/site-packages/absl/flags/_flagvalues.py", line 496, in setattr
return self._set_unknown_flag(name, value)
File "/Library/Python/2.7/site-packages/absl/flags/_flagvalues.py", line 374, in _set_unknown_flag
raise _exceptions.UnrecognizedFlagError(name, value)
absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'pad_idx'
The text was updated successfully, but these errors were encountered: