__version__ = "0.8.5"

from .core.program import PaddleGraph

program = PaddleGraph()

name_counter = dict()


def gen_name(op_name, var_name):
    name = "{}.{}".format(op_name, var_name)
    if name not in name_counter:
        name_counter[name] = 0
    else:
        name_counter[name] += 1
    name = name + "." + str(name_counter[name])
    return name
