ff5da2b2bfd03234519927b966923e8baecf6616,slm_lab/agent/net/convnet.py,ConvNet,__init__,#ConvNet#Any#Any#Any#Any#Any#Any#Any#Any#Any#,18

Before Change


                loss_param={"name": "mse_loss"})
        """
        // Calling super on greatgrandfather class
        Module.__init__(self)
        self.in_dim = in_dim
        self.out_dim = out_dim
        self.batch_norm = batch_norm
        self.conv_layers = []

After Change


        self.num_hid_layers = len(self.conv_layers) + len(self.flat_layers) - 1
        self.init_params()
        // Init other net variables
        self.params = list(self.conv_model.parameters()) + \
            list(self.dense_model.parameters())
        self.optim = net_util.get_optim_multinet(self.params, optim_param)
        self.loss_fn = net_util.get_loss_fn(self, loss_param)
        self.clamp_grad = clamp_grad
        self.clamp_grad_val = clamp_grad_val
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: kengz/SLM-Lab
Commit Name: ff5da2b2bfd03234519927b966923e8baecf6616
Time: 2018-01-02
Author: lgraesser@users.noreply.github.com
File Name: slm_lab/agent/net/convnet.py
Class Name: ConvNet
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: e3073f0fd4cc62fef7bfbca23ffd360e2d6c8a6a
Time: 2014-02-11
Author: jsirois@twitter.com
File Name: src/python/twitter/pants/targets/annotation_processor.py
Class Name: AnnotationProcessor
Method Name: __init__


Project Name: ray-project/ray
Commit Name: bb494a3be8387467d892f10a8dbba4d2e1a68a3b
Time: 2020-05-12
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/policy.py
Class Name: FixedPackingPolicyQueue
Method Name: __init__