def to_dense_deeper_model(self, target_id): """Insert a dense layer after the target layer. Args: target_id: The ID of a dense layer. """ self.operation_history.append(('to_dense_deeper_model', target_id)) target = self.layer_list[target_id] new_layers = dense_to_deeper_block(target, self.weighted) output_id = self._dense_block_end_node(target_id) self._insert_new_layers(new_layers, output_id)