def _update_layer_input_spaces(self):
        visible_layer = self.visible_layer
        hidden_layers = self.hidden_layers

        self.hidden_layers[0].set_input_space(visible_layer.space)
        for i in xrange(1, len(hidden_layers)):
            hidden_layers[i].set_input_space(
                hidden_layers[i-1].get_output_space())

        for layer in self.get_all_layers():
            layer.finalize_initialization()
Decorator which is used to add a function as a Deferred callback and
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/dbm/dbm.py/DBM._update_layer_input_spaces--crossover with--dataset/ETHPy150Open rapyuta/rce/rce-core/rce/container.py/passthrough