ChrisCummins / visioncpp

Performance-portable GPU machine vision algorithms for Python
http://chriscummins.cc/visioncpp/
Other
2 stars 0 forks source link

Add an intermediate representation for expression trees #3

Open ChrisCummins opened 8 years ago

ChrisCummins commented 8 years ago

Rather than going straight from Python -> C++, go through an IR. Contenders:

Then, add two API methods:

vp.save(exp, 'foo.json')   # save expression tree IR
exp = vp.load('foo.json')  # load expression tree IR