We propose a deep learning method to build an AdS/QCD model from the data of hadron spectra. A major problem of generic AdS/QCD models is that a large ambiguity is allowed for the bulk gravity metric with which QCD observables are holographically calculated. We adopt the experimentally measured spectra of ρ and a 2 mesons as training data, and perform a supervised machine learning which determines concretely a bulk metric and a dilaton profile of an AdS/QCD model. Our deep learning (DL) architecture is based on the AdS/DL correspondence [K. Hashimoto, S. Sugishita, A. Tanaka, and A. Tomiya, Phys. Rev. D 98, 046019 (2018)] where the deep neural network is identified with the emergent bulk spacetime.