8dce4fb6d91c6ee2101c3fba2e337aa3f4335f0c,gluon/models/darknet.py,DarkNet,__init__,#DarkNet#Any#Any#Any#Any#Any#Any#,70

Before Change



        with self.name_scope():
            self.features = nn.HybridSequential(prefix="")
            for i in range(len(channels)):
                stage = nn.HybridSequential(prefix="")
                channels_per_stage = channels[i]
                for j in range(len(channels_per_stage)):

After Change


            self.features = nn.HybridSequential(prefix="")
            for i, channels_per_stage in enumerate(channels):
                stage = nn.HybridSequential(prefix="stage{}_".format(i + 1))
                with stage.name_scope():
                    for j, out_channels in enumerate(channels_per_stage):
                        stage.add(dark_convYxY(
                            in_channels=in_channels,
                            out_channels=out_channels,
                            pointwise=(len(channels_per_stage) > 1) and not(((j + 1) % 2 == 1) ^ odd_pointwise)))
                        in_channels = out_channels
                    if i != len(channels) - 1:
                        stage.add(nn.MaxPool2D(
                            pool_size=2,
                            strides=2))
                self.features.add(stage)

            self.output = nn.HybridSequential(prefix="")
            self.output.add(nn.Conv2D(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: osmr/imgclsmob
Commit Name: 8dce4fb6d91c6ee2101c3fba2e337aa3f4335f0c
Time: 2018-08-02
Author: osemery@gmail.com
File Name: gluon/models/darknet.py
Class Name: DarkNet
Method Name: __init__


Project Name: dpressel/mead-baseline
Commit Name: 19d2bbc7d6e70836f34b83ac7702a0477e4b97b0
Time: 2019-11-19
Author: blester125@gmail.com
File Name: python/eight_mile/tf/layers.py
Class Name: BiLSTMEncoder1
Method Name: call


Project Name: tensorflow/ranking
Commit Name: 27aef1f3aa3dff22df125ca8a2fa4a4447ac6234
Time: 2019-08-13
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/utils.py
Class Name:
Method Name: organize_valid_indices