Skip to content

Commit f5400e9

Browse files
committed
fix nightly ci
1 parent b74e4e1 commit f5400e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_backend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
quantize_and_dequantize = tf.compat.v1.quantization.quantize_and_dequantize
8383
resize_nearest_neighbor = tf.compat.v1.image.resize_nearest_neighbor
8484
resize_bilinear = tf.compat.v1.image.resize_bilinear
85-
resize_bilinear_v2 = tf.compat.v2.image.resize
85+
if LooseVersion(tf.__version__) >= "1.14":
86+
resize_bilinear_v2 = tf.compat.v2.image.resize
8687
is_nan = tf.math.is_nan
8788
is_inf = tf.math.is_inf
8889
floormod = tf.floormod

0 commit comments

Comments
 (0)