def genPoolLayer(train_val, name, bottom, kernel_size, stride, pool_type):
    layer_str = '\nlayer {{\n  name: "{name}"\n  type: "Pooling"\n  bottom: "{bottom}"\n  top: "{top}"\n  pooling_param {{\n    pool: {pool_type}\n    kernel_size: {kernel_size}\n    stride: {stride}\n  }}\n}}'.format(name=name, top=name, bottom=bottom, pool_type=pool_type, kernel_size=kernel_size, stride=stride)
    train_val += layer_str
    return (train_val, name)
def genPoolLayer(train_val, name, bottom, kernel_size, stride, pool_type):
    layer_str = '\nlayer {{\n  name: "{name}"\n  type: "Pooling"\n  bottom: "{bottom}"\n  top: "{top}"\n  pooling_param {{\n    pool: {pool_type}\n    kernel_size: {kernel_size}\n    stride: {stride}\n  }}\n}}'.format(name=name, top=name, bottom=bottom, pool_type=pool_type, kernel_size=kernel_size, stride=stride)
    train_val += layer_str
    return (train_val, name)