End-to-End Synthesis of Dynamically Controlled Machine Learning Accelerators