Software-Defined Design Space Exploration for an Efficient AI Accelerator Architecture