Multi-task topology optimization of photonic devices in low-dimensional Fourier domain via deep learning