42588e0b073d51124b87b66d04aa41373d462952,keras_/kerascv/models/common.py,,conv2d,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,158

Before Change


        in_group_channels = in_channels // groups
        out_group_channels = out_channels // groups
        group_list = []
        is_channels_first = (K.image_data_format() == "channels_first")
        for gi in range(groups):
            xi = nn.Lambda(
                (lambda z: z[:, gi * in_group_channels:(gi + 1) * in_group_channels, :, :])
                if is_channels_first else
                (lambda z: z[:, :, :, gi * in_group_channels:(gi + 1) * in_group_channels]))(x)
            xi = nn.Conv2D(
                filters=out_group_channels,
                kernel_size=kernel_size,
                strides=strides,
                padding=ke_padding,
                dilation_rate=dilation,
                use_bias=use_bias,
                name=name + "/convgroup{}".format(gi + 1))(xi)
            group_list.append(xi)
        channel_axis = 1 if is_channels_first else -1
        x = nn.concatenate(group_list, axis=channel_axis, name=name + "/concat")
        if none_batch and (x._keras_shape[0] is not None):
            x._keras_shape = (None, ) + x._keras_shape[1:]

After Change


                use_bias=use_bias,
                name=name + "/convgroup{}".format(gi + 1))(xi)
            group_list.append(xi)
        x = nn.concatenate(group_list, axis=get_channel_axis(), name=name + "/concat")
        if none_batch and (x._keras_shape[0] is not None):
            x._keras_shape = (None, ) + x._keras_shape[1:]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 6

Instances


Project Name: osmr/imgclsmob
Commit Name: 42588e0b073d51124b87b66d04aa41373d462952
Time: 2019-02-10
Author: osemery@gmail.com
File Name: keras_/kerascv/models/common.py
Class Name:
Method Name: conv2d


Project Name: osmr/imgclsmob
Commit Name: c6cd4452fd4b6cae97df69ca4160be008014173b
Time: 2019-02-09
Author: osemery@gmail.com
File Name: keras_/kerascv/models/menet.py
Class Name:
Method Name: me_unit


Project Name: osmr/imgclsmob
Commit Name: 42588e0b073d51124b87b66d04aa41373d462952
Time: 2019-02-10
Author: osemery@gmail.com
File Name: keras_/kerascv/models/squeezenet.py
Class Name:
Method Name: fire_unit


Project Name: osmr/imgclsmob
Commit Name: 42588e0b073d51124b87b66d04aa41373d462952
Time: 2019-02-10
Author: osemery@gmail.com
File Name: keras_/kerascv/models/shufflenetv2b.py
Class Name:
Method Name: shuffle_unit


Project Name: osmr/imgclsmob
Commit Name: 8f89c9cefc0caee5518c9fa6f2db5a2a64f24ba0
Time: 2019-02-09
Author: osemery@gmail.com
File Name: keras_/kerascv/models/shufflenet.py
Class Name:
Method Name: shuffle_unit


Project Name: osmr/imgclsmob
Commit Name: 42588e0b073d51124b87b66d04aa41373d462952
Time: 2019-02-10
Author: osemery@gmail.com
File Name: keras_/kerascv/models/densenet.py
Class Name:
Method Name: dense_unit


Project Name: osmr/imgclsmob
Commit Name: 42588e0b073d51124b87b66d04aa41373d462952
Time: 2019-02-10
Author: osemery@gmail.com
File Name: keras_/kerascv/models/shufflenetv2.py
Class Name:
Method Name: shuffle_unit