Coder Social home page Coder Social logo

rtl2embeddings's Introduction

Learning semantic representation of design for verification

This repository contains code that replicates some of the experiments presented in Learning Semantic Reprsentation to Verify Design. Note that this is an unofficial implementation that does not have anything to do with the authors of above paper.

How to

Setup dependencies

Base dependencies

This step will install commonly required dependencies for using this repository.

# Pull submodules
git submodule update --init --recursive

# Install python dependencies (tested with python 3.6)
pip install -r requirements.txt

Generate data

  1. See this document to parse design and generate coverage information.
  2. Perform this step to generate data for NN training and evaluation.
python nn/datagen.py
  --graph_dir $DATA_DIR/generated/d2v_data/graph \ # See ./docs/data_generation.md to generate this
  --tp_cov_dir $DATA_DIR/generated/d2v_data/tp_cov \ # See ./docs/data_generation.md to generate this
  --tf_data_dir $DATA_DIR/nn_dataset # Where to output the final data.

Train model

After all data is prepared, you can train a model.

python nn/train.py \
  --graph_dir $DATA_DIR/generated/d2v_data/graph \ # See ./docs/data_generation.md to generate this
  --tp_cov_dir $DATA_DIR/generated/d2v_data/tp_cov \ # See ./docs/data_generation.md to generate this
  --batch_size 256 \ # Adjust this if you run into an OOM error.
  --split_ratio $SPLIT \ # Comma separated numbers that add up to 1 (e.g. 0.7,0.2,0.1)
  --seed 123 \ # Random seed for reproducibility
  --append_seed_to_ckpt_dir \ # This will add seed information to the checkpoint directory name
  --ckpt_dir $DATA/ckpts/split_$SPLIT/ \  # Where to save model checkpoints
  --tf_data_dir $DATA_DIR/nn_dataset \
  --use_attention  # Set if you want to use attention in the model

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.