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

Use absl.flags instead of tf.flags #1726

Merged
merged 1 commit into from
Dec 28, 2018
Merged

Conversation

stephanwlee
Copy link
Contributor

@stephanwlee stephanwlee commented Dec 26, 2018

TF is deprecating tf.flags. Migrate to absl.
Note that absl.flags by itself does not parse sys.argv like 1
indicates. However, it is passed as part of absl.app.run 2 which we use,
so the change should have no behavioral difference.

Confirmed that the flags are parsed as expected by manually running the
demos and script/tools.

Related to #1718.

TF is deprecating tf.flags. Migrate to absl.
Note that absl.flags by itself does not parse sys.argv like [1]
indicates. However, it is passed as part of absl.app.run which we use so
the change should have no behavioral difference.

Confirmed that the flags are parsed as expected by manually running the
demos and script/tools.

[1]: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/platform/flags.py#L66
[2]: https://github.com/abseil/abseil-py/blob/master/absl/app.py#L292
@stephanwlee stephanwlee assigned wchargin and unassigned wchargin Dec 28, 2018
@wchargin wchargin self-requested a review December 28, 2018 23:22
@stephanwlee stephanwlee merged commit 5e484f8 into tensorflow:master Dec 28, 2018
@stephanwlee stephanwlee deleted the flags branch December 28, 2018 23:28
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

Successfully merging this pull request may close these issues.

2 participants