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

Fast dense_image_warp_test #1180

Merged
merged 1 commit into from
Feb 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tensorflow_addons/image/dense_image_warp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _check_interpolation_correctness(
def test_interpolation(self):
"""Apply _check_interpolation_correctness() for a few sizes and
types."""
shapes_to_try = [[3, 4, 5, 6], [1, 5, 5, 3], [1, 2, 2, 1]]
shapes_to_try = [[3, 4, 5, 6], [1, 2, 2, 1]]
for im_type in ["float32", "float64", "float16"]:
for flow_type in ["float32", "float64", "float16"]:
for shape in shapes_to_try:
Expand All @@ -218,7 +218,7 @@ def test_interpolation(self):
def test_unknown_shapes(self):
"""Apply _check_interpolation_correctness() for a few sizes and check
for tf.Dataset compatibility."""
shapes_to_try = [[3, 4, 5, 6], [1, 5, 5, 3], [1, 2, 2, 1]]
shapes_to_try = [[3, 4, 5, 6], [1, 2, 2, 1]]
for shape in shapes_to_try:
self._check_interpolation_correctness(shape, "float32", "float32", True)

Expand Down