64bba81a6867ad72aad461e27221ea278d25f5c1,models/networks.py,,init_weights,#,60

Before Change


    elif init_type == "xavier":
        net.apply(weights_init_xavier)
    elif init_type == "kaiming":
        net.apply(weights_init_kaiming)
    elif init_type == "orthogonal":
        net.apply(weights_init_orthogonal)
    else:
        raise NotImplementedError("initialization method [%s] is not implemented" % init_type)

After Change


        elif classname.find("BatchNorm2d") != -1:
            init.normal(m.weight.data, 1.0, 0.02)
            init.constant(m.bias.data, 0.0)
    return init_func


def init_net(net, init_type="normal", gpu_ids=[]):
    print("initialization method [%s]" % init_type)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: junyanz/pytorch-CycleGAN-and-pix2pix
Commit Name: 64bba81a6867ad72aad461e27221ea278d25f5c1
Time: 2018-04-18
Author: junyanzhu89@gmail.com
File Name: models/networks.py
Class Name:
Method Name: init_weights


Project Name: shaypal5/pdpipe
Commit Name: 910adfb9b78ee60d9162a575fd068744a282f294
Time: 2020-01-26
Author: shaypal5@gmail.com
File Name: pdpipe/core.py
Class Name: PdPipeline
Method Name: apply


Project Name: etal/cnvkit
Commit Name: 699cb4d8ab7365b3a20ddd3de56a2a0ecc8b0046
Time: 2018-02-14
Author: eric.talevich@gmail.com
File Name: skgenome/tabio/gff.py
Class Name:
Method Name: read_gff