Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

version check in misc_utils.py likely needs to be changed #168

Open
David-Levinthal opened this issue Nov 9, 2017 · 19 comments
Open

version check in misc_utils.py likely needs to be changed #168

David-Levinthal opened this issue Nov 9, 2017 · 19 comments

Comments

@David-Levinthal
Copy link

very very minor issue.
I downloaded nmt today and found it would not run on TF version with an r1.4 f git checkout. I then built todays (11/9) top of tree qand got the same issue due to misc_util.py. Ifixed it as follows
def check_tensorflow_version():
min_tf_version = "1.4.0"

min_tf_version = "1.4.0-dev20171024"

if tf.version < min_tf_version:
raise EnvironmentError("Tensorflow version must >= %s" % min_tf_version)

@David-Levinthal
Copy link
Author

hmmm somehow the pound sign commenting out the dev2017 etc line caused that to go to bold face and large font????
:-)

@oahziur
Copy link
Contributor

oahziur commented Nov 9, 2017

@David-Levinthal tf-1.4 branch doesn't have the "-dev20171024" suffix anymore.

@David-Levinthal
Copy link
Author

David-Levinthal commented Nov 9, 2017 via email

@oahziur
Copy link
Contributor

oahziur commented Nov 10, 2017

@David-Levinthal sorry, I meant you should check out tf-1.4 branch instead of master if you want to use tensorflow r1.4.

If you want to use the master branch, you have to install tf-nightly.

@David-Levinthal
Copy link
Author

David-Levinthal commented Nov 10, 2017 via email

@oahziur
Copy link
Contributor

oahziur commented Nov 10, 2017

@David-Levinthal Thanks for the suggestion. The reason the dev suffix is enforced in the master branch is because there is a bug fix on Beam Search's correctness and some structure change on the LSTM cell in tensorflow that is not included in the r1.4 release. I will see if we can relax the version restriction in future.

@David-Levinthal
Copy link
Author

David-Levinthal commented Nov 11, 2017 via email

@oahziur
Copy link
Contributor

oahziur commented Nov 13, 2017

@David-Levinthal any reason you want to test against master branch? Can you test with tf-1.4 branch?

For example, you can clone the single tf-1.4 branch directly for testing.

git clone --single-branch --branch tf-1.4  https://github.com/tensorflow/nmt/

@David-Levinthal
Copy link
Author

David-Levinthal commented Nov 13, 2017 via email

@oahziur
Copy link
Contributor

oahziur commented Nov 13, 2017

@David-Levinthal hmm, on tf-1.4 branch, the version string is "1.4.0". (https://github.com/tensorflow/nmt/blob/tf-1.4/nmt/utils/misc_utils.py#L32). Is there anything I can change on the tf-1.4 branch to make it works for you?

@David-Levinthal
Copy link
Author

David-Levinthal commented Nov 13, 2017 via email

@oahziur
Copy link
Contributor

oahziur commented Nov 14, 2017

@David-Levinthal Feel free to post any questions related to the nmt codebase here. I will try to answer them.

@David-Levinthal
Copy link
Author

David-Levinthal commented Nov 14, 2017 via email

@David-Levinthal
Copy link
Author

David-Levinthal commented Nov 14, 2017 via email

@oahziur
Copy link
Contributor

oahziur commented Nov 15, 2017

@David-Levinthal
(sorry, I meant to create a new issue if it is unrelated this issue's topic)

Yes, the wps count is (input words + output words). I believe it is just the value of this tensor (https://github.com/tensorflow/nmt/blob/master/nmt/model.py#L101).

We just use the value as one of our performance measurement for the same language pair, but I think it makes sense to report both input words, output words and total words count.

@David-Levinthal
Copy link
Author

David-Levinthal commented Nov 15, 2017 via email

@David-Levinthal
Copy link
Author

David-Levinthal commented Nov 17, 2017 via email

@oahziur
Copy link
Contributor

oahziur commented Nov 17, 2017

@David-Levinthal I think the bleu score is a percentage in NMT. You can do nmt_bleu_score / 100 to compare with T2T bleu score.

@David-Levinthal
Copy link
Author

David-Levinthal commented Nov 17, 2017 via email

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

No branches or pull requests

2 participants