enas icon indicating copy to clipboard operation
enas copied to clipboard

Explanation of `cifar10.micro_child._factorized_reduction`

Open bkj opened this issue 6 years ago • 1 comments

The docstring for cifar10.micro_child._factorized_reduction says

"""Reduces the shape of x without information loss due to striding."""

Could you explain what that means?

When stride=2,

path1 = tf.nn.avg_pool(x, [1, 1, 1, 1], stride_spec, "VALID", data_format=self.data_format)

and

path2 = tf.nn.avg_pool(path2, [1, 1, 1, 1], stride_spec, "VALID", data_format=self.data_format)

each select 1/4 of the spatial locations, so you end up ignoring half of the spatial locations (specifically, any (i,j) where i % 2 != j % 2). Is that right?

~ Ben

bkj avatar Apr 09 '18 19:04 bkj

Also, why not do avg pool with kernel size 2 instead? Is there a benefit of this approach?

karandwivedi42 avatar May 23 '18 19:05 karandwivedi42