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

Removed no longer supported call in_eager_execution() #23560

Merged
merged 1 commit into from Nov 7, 2018

Conversation

gehring
Copy link
Contributor

@gehring gehring commented Nov 6, 2018

changes to model_analyser.analyse(...):

  • Swapped context.in_eager_execution() to the currently supported context.executing_eagerly().
  • Added negation to eager check. In all likelihood, the negation was always supposed to be there since getting default graph in eager mode does not make sense. The current if condition is likely a bug. The proposed fix is consistent with other functions in this module, e.g., profile(...), line 339.

changes to model_analyser.analyse(...):
- Swapped context.in_eager_execution() to the currently supported context.executing_eagerly().
- Added negation to eager check. In all likelihood, the negation was always supposed to be there since getting default graph in eager mode does not make sense. The current `if` condition is likely a bug. The proposed fix is consistent with other functions in this module, e.g., `profile(...)`, line 339.
@ymodak ymodak self-assigned this Nov 6, 2018
@ymodak ymodak requested a review from caisq November 6, 2018 18:34
@ymodak ymodak added the awaiting review Pull request awaiting review label Nov 6, 2018
Copy link
Contributor

@caisq caisq left a comment

Choose a reason for hiding this comment

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

Thanks, @gehring

@ymodak ymodak added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process and removed awaiting review Pull request awaiting review labels Nov 6, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Nov 6, 2018
@tensorflow-copybara tensorflow-copybara merged commit c9b4689 into tensorflow:master Nov 7, 2018
tensorflow-copybara pushed a commit that referenced this pull request Nov 7, 2018
PiperOrigin-RevId: 220378263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes ready to pull PR ready for merge process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants