Skip to content

Better cross-environment error messages #207

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

Merged
merged 2 commits into from
Feb 11, 2021

Conversation

rnett
Copy link
Contributor

@rnett rnett commented Feb 4, 2021

This PR exposes env() to Operation and Op, and adds nicer error messages when using inputs from other environments.

@karllessard it's currently failing the failWhenMixingOperationsOnDifferentGraphs test, but looking at it it looks like the test is wrong. It fails when an exception is thrown, which given the name seems backwards. Mixing graphs like this fails anyways, just not until the session is ran (it gives a very cryptic Graph is invalid, contains a cycle exception, but I'm assuming that's due to the mixing).

@karllessard
Copy link
Collaborator

@rnett , I agree the broken test seems reverted, it should fail if there are no exception thrown, that is strange. You can update it or simply remove it since you seem to cover these cases in another test suite now.

Signed-off-by: Ryan Nett <rnett@calpoly.edu>
@rnett rnett mentioned this pull request Feb 9, 2021
@rnett
Copy link
Contributor Author

rnett commented Feb 9, 2021

It's fixed, should be good to merge.

Copy link
Collaborator

@karllessard karllessard left a comment

Choose a reason for hiding this comment

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

Thanks @rnett !

@karllessard karllessard merged commit 257bbb0 into tensorflow:master Feb 11, 2021
@rnett rnett deleted the rn_env_exceptions branch October 17, 2021 00:44
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