21994919156aac15558f77555538346fb702bcbc,autokeras/nn/generator.py,ResNetGenerator,_make_block,#ResNetGenerator#Any#Any#Any#Any#Any#,189

Before Change


        out = graph.add_layer(self.batch_norm(planes), out)
        if downsample is not None:
            downsample_out = graph.add_layer(StubReLU(), node_id)
            downsample_out = graph.add_layer(downsample[0], downsample_out)
            residual_node_id = graph.add_layer(downsample[1], downsample_out)
        out = graph.add_layer(StubAdd(), (out, residual_node_id))
        return out

After Change


        out = graph.add_layer(self.conv(planes, planes, kernel_size=3), out)

        residual_node_id = graph.add_layer(StubReLU(), residual_node_id)
        residual_node_id = graph.add_layer(self.conv(in_planes,
                                                     planes * self.block_expansion,
                                                     kernel_size=1,
                                                     stride=stride), residual_node_id)
        out = graph.add_layer(StubAdd(), (out, residual_node_id))
        return out
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/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


Project Name: taehoonlee/tensornets
Commit Name: a96d82b868e53e6f2d38225814e28f6d0f6077d0
Time: 2017-11-01
Author: me@taehoonlee.com
File Name: tensornets/inceptions.py
Class Name:
Method Name: reductionA