Skip to content

Commit 325609e

Browse files
authored
Remove unused _max_pool method (tensorflow#2186)
1 parent 70b894b commit 325609e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tutorials/image/cifar10_estimator/model_base.py

-7
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,6 @@ def _avg_pool(self, x, pool_size, stride):
211211
tf.logging.info('image after unit %s: %s', name_scope, x.get_shape())
212212
return x
213213

214-
def _max_pool(self, x, pool_size, stride):
215-
with tf.name_scope('max_pool') as name_scope:
216-
x = tf.layers.max_pooling2d(
217-
x, pool_size, stride, padding='SAME', data_format=self._data_format)
218-
tf.logging.info('image after unit %s: %s', name_scope, x.get_shape())
219-
return x
220-
221214
def _global_avg_pool(self, x):
222215
with tf.name_scope('global_avg_pool') as name_scope:
223216
assert x.get_shape().ndims == 4

0 commit comments

Comments
 (0)