An Encoder-Decoder Network for Beamforming over Sparse Large-Scale MIMO Channels