def avgpool(self, inputs, pool_size, stride_size):
    return tf.nn.avg_pool2d(inputs, ksize=[1, pool_size, pool_size, 1], padding='VALID', strides=[1, stride_size, stride_size, 1])
def avgpool(self, inputs, pool_size, stride_size):
    return tf.nn.avg_pool2d(inputs, ksize=[1, pool_size, pool_size, 1], padding='VALID', strides=[1, stride_size, stride_size, 1])