Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 606 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 606 Bytes

My Dynamo

Learning internals of torchdynamo

Notes

  • 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 to a * 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.

Development Setup

initial setup

python setup.py develop  # compiles C/C++ extension
python naive_transform.py