Skip to content

[NCF] Add run_eagerly for ctl.#7229

Merged
nnigania merged 3 commits intotensorflow:masterfrom
tfboyd:ncf_run_eagerly
Aug 9, 2019
Merged

[NCF] Add run_eagerly for ctl.#7229
nnigania merged 3 commits intotensorflow:masterfrom
tfboyd:ncf_run_eagerly

Conversation

@tfboyd
Copy link
Copy Markdown
Member

@tfboyd tfboyd commented Jul 16, 2019

No description provided.

@tfboyd tfboyd requested a review from guptapriya July 16, 2019 21:59
@tfboyd tfboyd requested a review from rachellj218 as a code owner July 16, 2019 21:59
Copy link
Copy Markdown
Contributor

@guptapriya guptapriya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding this option!

Copy link
Copy Markdown
Contributor

@guptapriya guptapriya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah actually I got confused about what this PR does. What is your intention with this PR?
Earlier i thought "Default" value of the flag means default strategy. but it doesn't. It means "pick the best strategy based on num gpus etc.. " https://github.com/tensorflow/models/blob/master/official/utils/misc/distribution_utils.py#L93

I am assuming that's not your intention?

@guptapriya guptapriya requested a review from nnigania July 17, 2019 23:34
@tfboyd tfboyd requested a review from saberkun as a code owner July 24, 2019 22:30
@tfboyd
Copy link
Copy Markdown
Member Author

tfboyd commented Jul 24, 2019

Fixed and updated the comment on the test. PTAL

@nnigania
Copy link
Copy Markdown
Contributor

nnigania commented Jul 24, 2019

nice, this will allow us to run eager with CTL. Just a question, I thought eager mode does not support distribution strategy?

FLAGS.early_stopping = True
self._run_and_report_benchmark()

def benchmark_1_gpu_ctl_run_eagerly_early_stop(self):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also want to do a non dist strat run eagerly?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I am confused again; and now I remember dist strat needs turned off. I always look at this branch last when I am rushing to finish other stuff. One more try coming up. :-)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than removing tests this is the last test I am adding period... probably....no seriously...maybe.

@nnigania
Copy link
Copy Markdown
Contributor

nnigania commented Aug 9, 2019

hi,

the changes look good to me. Should be go ahead and checkin this change?

@nnigania nnigania merged commit 62184a9 into tensorflow:master Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants