b31f2cafe77bf3a2f738289a89438fb72936117c,autokeras/hypermodel/hyper_block.py,ConvBlock,build,#ConvBlock#Any#Any#,159

Before Change


                kernel_size,
                padding=self._get_padding(kernel_size, output_node))(output_node)

            output_node = tf.keras.layers.Conv2D(
                hp.Choice("filters_{i}_2".format(i=i),
                          [16, 32, 64],
                          default=32),
                kernel_size,
                padding=self._get_padding(kernel_size, output_node))(output_node)

            output_node = tf.keras.layers.MaxPool2D(
                kernel_size - 1,
                padding=self._get_padding(kernel_size - 1, output_node))(output_node)

After Change



        separable = self.separable
        if separable is None:
            separable = hp.Choice("separable", [True, False], default=False)
        if separable:
            conv = utils.get_sep_conv(input_node.shape)
        else:
            conv = utils.get_conv(input_node.shape)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/autokeras
Commit Name: b31f2cafe77bf3a2f738289a89438fb72936117c
Time: 2019-07-12
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/hyper_block.py
Class Name: ConvBlock
Method Name: build


Project Name: keras-team/autokeras
Commit Name: 0a80b9769115d291f15c244429793eda4cb8ecad
Time: 2017-12-28
Author: jhfjhfj1@gmail.com
File Name: tests/test_layer_transformer.py
Class Name:
Method Name: test_conv_to_wider_layer


Project Name: keras-team/autokeras
Commit Name: b1bfd16945a658d02847209e46a2ba8d72b456e1
Time: 2019-07-01
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/hyper_block.py
Class Name: ImageBlock
Method Name: build