Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

questions about path #1

Open
sun123-cmd opened this issue Oct 17, 2024 · 0 comments
Open

questions about path #1

sun123-cmd opened this issue Oct 17, 2024 · 0 comments

Comments

@sun123-cmd
Copy link

Thanks for your excellent work!
While trying to build your code, I met following path problem:
In your code there are many dir seetings and synthesisStatistics.picklefile, I wonder how can I get it?

    IS_STATS_AVAILABLE = True
    train_ROOT_DIR = "/home/yangch/TODAES/data_set/train/" #'/scratch/abc586/OPENABC_DATASET'
    valid_ROOT_DIR = "/home/yangch/TODAES/data_set/valid/"
    test_ROOT_DIR = "/home/yangch/TODAES/data_set/test/"
    csv_DIR = "/home/yangch/TODAES/data_set/"
    global DUMP_DIR
    DUMP_DIR = "/home/yangch/TODAES/RUN_DIR/delay/" #osp.join('/scratch/abc586/OpenABC-dataset/SynthV9_AND',RUN_DIR)

    if not osp.exists(DUMP_DIR):
        os.mkdir(DUMP_DIR)


    # Load train and test datasets
    trainDS = NetlistGraphDataset(root=osp.join(train_ROOT_DIR),csv_DIR=osp.join(csv_DIR),filePath=datasetDict[datasetChoice][0])
    validDS = NetlistGraphDataset(root=osp.join(valid_ROOT_DIR),csv_DIR=osp.join(csv_DIR),filePath=datasetDict[datasetChoice][1])
    testDS = test_NetlistGraphDataset(root=osp.join(test_ROOT_DIR),csv_DIR=osp.join(csv_DIR),filePath=datasetDict[datasetChoice][2])
    #print(trainDS)

    if IS_STATS_AVAILABLE:
        with open(osp.join(csv_DIR,'synthesisStatistics.pickle'),'rb') as f:
            numGatesAndLPStats = pickle.load(f)
    else:
        print("\nNo pickle file found for number of gates")
        exit(0)

I tried to run ./QoR_prediction/area_train.py and set DIR as:

    train_ROOT_DIR = "../dataset/ptdata/train/" #'/scratch/abc586/OPENABC_DATASET'
    valid_ROOT_DIR = "../dataset/ptdata/valid/"
    test_ROOT_DIR = "../dataset/test/"
    csv_DIR = "../dataset/"
    global DUMP_DIR
    DUMP_DIR = "../area/"

How to change it correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant