gussmith23 / glenside

A pure, low-level tensor program representation enabling tensor program optimization via program rewriting. See the web demo at https://gussmith23.github.io/glenside-web-demo/
68 stars 10 forks source link

Make rewrites less dynamic #149

Open gussmith23 opened 2 years ago

gussmith23 commented 2 years ago

A lot of our rewrites are dynamic for "dumb" reasons. E.g. we often need to calculate a new axis argument by inspecting Analysis data. Often these calculations are simple arithmetic. We can add simple arithmetic expressions to the language.

gussmith23 commented 2 years ago

This might be a good first issue for people (with my guidance). It will require adding some things to the language and rewriting some rewrites.