Photonics for AI and AI for Photonics