Deep learning the small-angle scattering of polydisperse hard rods