Skip to content

Commit ddc4226

Browse files
irmowanTaylor Robie
authored andcommitted
Remove useless fields in resnet_model (tensorflow#4110)
Refer to commit "use reduce_mean instead of Average Pooling"(d5663b3), "second_pool_size" and "second_pool_stride" no longer needed in resnet_model
1 parent 04ef5c2 commit ddc4226

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

official/resnet/resnet_model.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ class Model(object):
353353
def __init__(self, resnet_size, bottleneck, num_classes, num_filters,
354354
kernel_size,
355355
conv_stride, first_pool_size, first_pool_stride,
356-
second_pool_size, second_pool_stride, block_sizes, block_strides,
356+
block_sizes, block_strides,
357357
final_size, version=DEFAULT_VERSION, data_format=None,
358358
dtype=DEFAULT_DTYPE):
359359
"""Creates a model for classifying an image.
@@ -371,8 +371,6 @@ def __init__(self, resnet_size, bottleneck, num_classes, num_filters,
371371
If none, the first pooling layer is skipped.
372372
first_pool_stride: stride size for the first pooling layer. Not used
373373
if first_pool_size is None.
374-
second_pool_size: Pool size to be used for the second pooling layer.
375-
second_pool_stride: stride size for the final pooling layer
376374
block_sizes: A list containing n values, where n is the number of sets of
377375
block layers desired. Each value should be the number of blocks in the
378376
i-th set.
@@ -422,8 +420,6 @@ def __init__(self, resnet_size, bottleneck, num_classes, num_filters,
422420
self.conv_stride = conv_stride
423421
self.first_pool_size = first_pool_size
424422
self.first_pool_stride = first_pool_stride
425-
self.second_pool_size = second_pool_size
426-
self.second_pool_stride = second_pool_stride
427423
self.block_sizes = block_sizes
428424
self.block_strides = block_strides
429425
self.final_size = final_size

0 commit comments

Comments
 (0)