Text this: Photonic-dispersion neural networks for inverse scattering problems