Robust light beam diffractive shaping based on a kind of compact all-optical neural network