'A shallow and thin ResNet v2 for faster tests.'

def _resnet_small(self, inputs, num_classes=None, is_training=True, global_pool=True, output_stride=None, include_root_block=True, reuse=None, scope='resnet_v2_small'):

    bottleneck = resnet_v2.bottleneck
    blocks = [resnet_utils.Block('block1', bottleneck, (([(4, 1, 1)] * 2) + [(4, 1, 2)])), resnet_utils.Block('block2', bottleneck, (([(8, 2, 1)] * 2) + [(8, 2, 2)])), resnet_utils.Block('block3', bottleneck, (([(16, 4, 1)] * 2) + [(16, 4, 2)])), resnet_utils.Block('block4', bottleneck, ([(32, 8, 1)] * 2))]
    return resnet_v2.resnet_v2(inputs, blocks, num_classes, is_training=is_training, global_pool=global_pool, output_stride=output_stride, include_root_block=include_root_block, reuse=reuse, scope=scope)
