def add_hidden_layer(self, n_hidden_units):

        # Keep model params here.
        old_params = [p.get_value() for p in self.params]

        # Remove the last layer parameters
        old_params = old_params[:-2]

        self.build_model(n_hidden_units, 1, old_params)
It is like a building a complete network, you have to just initialise the network using
dataset/ETHPy150Open UFAL-DSG/cloud-asr/cloudasr/worker/vad/tffnn.py/TheanoFFNN.add_hidden_layer