def register_layer(self, layer):
if type(layer) == Block:<EOL><INDENT>layer.fix()<EOL><DEDENT>self.parameter_count += layer.parameter_count<EOL>self.parameters.extend(layer.parameters)<EOL>self.free_parameters.extend(layer.free_parameters)<EOL>self.training_monitors.extend(layer.training_monitors)<EOL>self.testing_monitors.extend(layer.testing_monitors)<EOL>self.updates.extend(layer.updates)<EOL>self.training_updates.extend(layer.training_updates)<EOL>self.input_variables.extend(layer.external_inputs)<EOL>self.target_variables.extend(layer.external_targets)<EOL>self.training_callbacks.extend(layer.training_callbacks)<EOL>self.testing_callbacks.extend(layer.testing_callbacks)<EOL>self.epoch_callbacks.extend(layer.epoch_callbacks)<EOL>
Register the layer so that it's param will be trained.
But the output of the layer will not be stacked.