Skip to content

Commit 15d48b5

Browse files
warshallrhozsdonghao
authored andcommitted
replace tf.image.resize_image_with_crop_or_pad with tf.image.resize_with_crop_or_pad (#1032)
* 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 * Update CHANGELOG.md
1 parent 43f1132 commit 15d48b5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ To release a new version, please update the changelog as followed:
112112
- Remove `private_method` decorator (#PR 1025)
113113
- Copy original model's `trainable_weights` and `nontrainable_weights` when initializing `ModelLayer` (#PR 1026)
114114
- Copy original model's `trainable_weights` and `nontrainable_weights` when initializing `LayerList` (#PR 1029)
115-
- remove redundant parts in `model.all_layers` (#PR 1029)
115+
- Remove redundant parts in `model.all_layers` (#PR 1029)
116+
- Replace `tf.image.resize_image_with_crop_or_pad` with `tf.image.resize_with_crop_or_pad` (#PR 1032)
116117

117118
### Removed
118119

@@ -122,7 +123,7 @@ To release a new version, please update the changelog as followed:
122123

123124
- @zsdonghao
124125
- @ChrisWu1997: #1010 #1015 #1025 #1030
125-
- @warshallrho: #1017 #1021 #1026 #1029
126+
- @warshallrho: #1017 #1021 #1026 #1029 #1032
126127
- @ArnoldLIULJ: #1023
127128
- @JingqingZ: #1023
128129

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)