Ahead of time compiler for Relay

Hey everyone,

We recently open sourced an ahead of time compiler for Relay programs.

The ahead of time compiler produces a native library given a Relay expression, and dynamically loads it and wraps it in Python. This makes it possible to easily/compile/deploy Relay programs.

A few optimizations are still to be implemented, they will likely land with the VM, and VM compiler, specifically ones around memory planning.

I encourage everyone to checkout the compiler, open issues, or follow up with questions about how to use it.

The compiler was mostly written by @MarisaKirisame and I at the end of the last year, and @MarisaKirisame updated it to work on the newest version of Relay now that features such as ADTs are stable.

6 Likes