925ec7452d158af56eee58540d8211c31511fd5b,autokeras/nn/graph.py,Graph,_insert_pooling_layer_chain,#Graph#Any#Any#,500

Before Change


    def _insert_pooling_layer_chain(self, block_last_layer_input_id, conv_block_input_id):
        skip_output_id = conv_block_input_id
        for kernel_size, stride, padding in self._get_pooling_layers(conv_block_input_id, block_last_layer_input_id):
            skip_output_id = self.add_layer(get_pooling_class(self.n_dim)(kernel_size,
                                                                          stride=stride,
                                                                          padding=padding), skip_output_id)
        skip_output_id = self.add_layer(StubReLU(), skip_output_id)
        return skip_output_id

    def extract_descriptor(self):

After Change


            new_layer = deepcopy(layer)
            if is_layer(new_layer, "Conv"):
                filters = self.node_list[start_node_id].shape[-1]
                new_layer = get_conv_class(self.n_dim)(filters, filters, 1, layer.stride)
            else:
                new_layer = deepcopy(layer)
            skip_output_id = self.add_layer(new_layer, skip_output_id)
        skip_output_id = self.add_layer(StubReLU(), skip_output_id)
        return skip_output_id

    def extract_descriptor(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: keras-team/autokeras
Commit Name: 925ec7452d158af56eee58540d8211c31511fd5b
Time: 2018-11-28
Author: jhfjhfj1@gmail.com
File Name: autokeras/nn/graph.py
Class Name: Graph
Method Name: _insert_pooling_layer_chain


Project Name: jhfjhfj1/autokeras
Commit Name: 21994919156aac15558f77555538346fb702bcbc
Time: 2018-11-26
Author: jhfjhfj1@gmail.com
File Name: autokeras/nn/generator.py
Class Name: ResNetGenerator
Method Name: _make_block