Skip to content

Commit c48696b

Browse files
committed
replace tf.image.resize_image_with_crop_or_pad with tf.image.resize_with_crop_or_pad
tf.image.resize_image_with_crop_or_pad is not supported now
1 parent 43f1132 commit c48696b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/basic_tutorials/tutorial_cifar10_cnn_static.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _map_fn_train(img, target):
127127

128128
def _map_fn_test(img, target):
129129
# 1. Crop the central [height, width] of the image.
130-
img = tf.image.resize_image_with_crop_or_pad(img, 24, 24)
130+
img = tf.image.resize_with_crop_or_pad(img, 24, 24)
131131
# 2. Subtract off the mean and divide by the variance of the pixels.
132132
img = tf.image.per_image_standardization(img)
133133
img = tf.reshape(img, (24, 24, 3))

0 commit comments

Comments
 (0)