AI in photonics