cf767a1297d67caf41577508aacc7cbc24ae8f14,scripts/gan/stylegan/modules.py,EqualConv2d,hybrid_forward,#EqualConv2d#Any#Any#,98

Before Change


    def hybrid_forward(self, F, x, **kwargs):

        new_weight = compute_weight(kwargs["weight_orig"])
        self.conv.params[self.weight_key].set_data(new_weight)

        return self.conv(x)

After Change



    def hybrid_forward(self, F, x, **kwargs):

        size = kwargs["weight"].shape
        fan_in = prod(size[1:])
        multiplier = sqrt(2.0 / fan_in)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dmlc/gluon-cv
Commit Name: cf767a1297d67caf41577508aacc7cbc24ae8f14
Time: 2020-09-16
Author: 43100519+xdeng7@users.noreply.github.com
File Name: scripts/gan/stylegan/modules.py
Class Name: EqualConv2d
Method Name: hybrid_forward


Project Name: dmlc/gluon-cv
Commit Name: cf767a1297d67caf41577508aacc7cbc24ae8f14
Time: 2020-09-16
Author: 43100519+xdeng7@users.noreply.github.com
File Name: scripts/gan/stylegan/modules.py
Class Name: EqualLinear
Method Name: hybrid_forward


Project Name: AlexEMG/DeepLabCut
Commit Name: a6346ab7b831a258d6c0aadbf81f3c0eefbef4e4
Time: 2021-01-13
Author: alexander@deeplabcut.org
File Name: deeplabcut/utils/visualization.py
Class Name:
Method Name: make_labeled_images_from_dataframe