def genAccuracyLayer(train_val, name, bottom_1, bottom_2='label', k=1):
    layer_str = '\nlayer {{\n  type: "Accuracy"\n  name: "{name}"\n  bottom: "{bottom_1}"\n  bottom: "{bottom_2}"\n  top: "{top}"\n  accuracy_param {{\n    top_k: {k}\n  }}\n  include {{ phase: TEST }}\n}}'.format(name=name, top=name, bottom_1=bottom_1, bottom_2=bottom_2, k=k)
    train_val += layer_str
    return (train_val, name)
def genAccuracyLayer(train_val, name, bottom_1, bottom_2='label', k=1):
    layer_str = '\nlayer {{\n  type: "Accuracy"\n  name: "{name}"\n  bottom: "{bottom_1}"\n  bottom: "{bottom_2}"\n  top: "{top}"\n  accuracy_param {{\n    top_k: {k}\n  }}\n  include {{ phase: TEST }}\n}}'.format(name=name, top=name, bottom_1=bottom_1, bottom_2=bottom_2, k=k)
    train_val += layer_str
    return (train_val, name)