enas
enas copied to clipboard
Explanation of `cifar10.micro_child._factorized_reduction`
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
Also, why not do avg pool with kernel size 2 instead? Is there a benefit of this approach?