Tuning of Optical Beamforming Networks: A Deep Learning Approach