Skip to content

Conversation

@WindQAQ
Copy link
Member

@WindQAQ WindQAQ commented Aug 5, 2019

Closes #373.
This is probably related to #12 and tensorflow/tensorflow#24945 (in the totally opposite side). I think the best solution now is to do shape inference in SetShapeFn while registering OP, which seems to successfully raise the same exception (ValueError) and the same error message in both graph and eager modes.

@WindQAQ
Copy link
Member Author

WindQAQ commented Aug 5, 2019

The sanity check also failed due to timeout...

delta_h = np.random.rand() * 2.0 - 1.0
with self.assertRaisesOpError("input must have 3 channels "
"but instead has 4 channels"):
with self.assertRaisesRegex(ValueError, msg):
Copy link
Member

Choose a reason for hiding this comment

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

I did not figure out why the check failure here is not raised in the graph mode in the GPU version of tensorflow-2.0-preview, but it is raised in the CPU version.

Copy link
Member Author

Choose a reason for hiding this comment

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

I also have no idea about it... I'd suppose it should either fail or pass regardless of the device.

Copy link
Member

@seanpmorgan seanpmorgan left a comment

Choose a reason for hiding this comment

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

LGTM thanks so much!

@seanpmorgan seanpmorgan merged commit 695dc19 into tensorflow:master Aug 7, 2019
@WindQAQ WindQAQ deleted the image/distort_image_ops/fix_test branch August 8, 2019 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

distort_image_ops_test.py fails on tf-nightly-2.0-gpu

5 participants