Learning internals of torchdynamo
- tinyvm.py is a very tiny script to demo a stack virtual machine that interpretes python bytecodes.
- naive_transform.py is demostrating howto transform bytecodes of
a + b
toa * b + a + b
by utilizing pep523. - paddle_fx_poc.py is a poc for creating a python IR for paddle python program by symbolic trace.
initial setup
python setup.py develop # compiles C/C++ extension
python naive_transform.py