Skip to content

Commit a44f3eb

Browse files
committed
Fix formatting
1 parent bc924fc commit a44f3eb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tensorflow_addons/image/dense_image_warp.py

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def interpolate_bilinear(
5252
with tf.name_scope(name or "interpolate_bilinear"):
5353
grid = tf.convert_to_tensor(grid)
5454
query_points = tf.convert_to_tensor(query_points)
55+
grid_shape = tf.shape(grid)
56+
query_shape = tf.shape(query_points)
5557

5658
tf.Assert(tf.equal(tf.rank(grid), 4), ["Grid must be 4D Tensor"])
5759
tf.Assert(

tensorflow_addons/image/tests/dense_image_warp_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ def test_size_exception():
240240
"""Make sure it throws an exception for images that are too small."""
241241
shape = [1, 2, 1, 1]
242242
with pytest.raises(
243-
tf.errors.InvalidArgumentError, match="Grid width must be at least 2."):
244-
_check_interpolation_correctness(shape, "float32", "float32")
243+
tf.errors.InvalidArgumentError, match="Grid width must be at least 2."):
244+
_check_interpolation_correctness(shape, "float32", "float32")
245245

246246

247247
@pytest.mark.usefixtures("maybe_run_functions_eagerly")

0 commit comments

Comments
 (0)