Skip to content

Example showing the different stages of Relay and TVM IR for a single program.

Notifications You must be signed in to change notification settings

uwsampl/3la-ir-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build and run Docker image

This Docker container first builds a version of TVM which is modified to print out the different TVM IRs at different stages of the build process. It then runs a simple LSTM through TVM as an example.

How it's useful

Though this is useful in viewing the different levels of TVM IR, it may be more useful as a guide, showing different places in TVM where IR is manipulated and lowered. Please look in the Dockerfile to find the specific fork and commit of TVM that is being built. Look through the commit history of this fork to see all of the places where IR is being printed.

Running

git clone <this repo>
cd <this repo>
# Build Docker image from Dockerfile
docker build  -t 3la-ir-example  -f Dockerfile .
# Run Docker image (which runs the 3la-ir-example.py script)
docker run -it 3la-ir-example

About

Example showing the different stages of Relay and TVM IR for a single program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published