Next-Generation Ai: From Algorithm To Device Perspectives