def _create_variables(self):

        """ Create the TensorFlow variables for the model.
        :return: self
        """

        self.W_vars = [tf.Variable(self.W_pretrain[l]) for l in range(self.n_layers-1)]
        self.bh_vars = [tf.Variable(self.bh_pretrain[l]) for l in range(self.n_layers-1)]
        self.bv_vars = [tf.Variable(self.bv_pretrain[l]) for l in range(self.n_layers-1)]
dataset/ETHPy150Open blackecho/Deep-Learning-TensorFlow/models/rbm_models/dbn.py/DBN._create_variables/original