An Intelligent Reflecting Surface (IRS) is an emerging technology for improving the data rate over wireless channels by controlling the underlying channel. In this paper, we describe a novel solution for IRS configuration to maximize the data rate over wideband channels. The optimization is obtained by online training of a deep generative neural network. Inspired by related works in image processing, this network is randomly initialized and acts as a regularization term for the optimization process since the structure of the generator is sufficient to capture a great deal of IRS statistics prior to any learning. In contrast to recent deep learning techniques for IRS configuration, the proposed technique does not require an offline training stage and can adapt quickly to any environment. Compared to the previous state-of-the-art algorithm, the proposed method is significantly faster and obtains IRS configurations that achieve higher data transmission rates.