8f6a6f153781d0908fb0904349aae844494026ea,models/shiftnet_model.py,ShiftNetModel,initialize,#ShiftNetModel#Any#,17

Before Change


        self.opt = opt
        self.isTrain = opt.isTrain
        // define tensors
        self.input_A = self.Tensor(opt.batchSize, opt.input_nc,
                                   opt.fineSize, opt.fineSize)
        self.input_B = self.Tensor(opt.batchSize, opt.output_nc,
                                   opt.fineSize, opt.fineSize)

        // batchsize should be 1 for mask_global

After Change


        self.visual_names = ["real_A", "fake_B", "real_B"]
        // specify the models you want to save to the disk. The program will call base_model.save_networks and base_model.load_networks
        if self.isTrain:
            self.model_names = ["G", "D"]
        else:  // during test time, only load Gs
            self.model_names = ["G"]

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: 8f6a6f153781d0908fb0904349aae844494026ea
Time: 2018-12-03
Author: yanzhaoyi@outlook.com
File Name: models/shiftnet_model.py
Class Name: ShiftNetModel
Method Name: initialize


Project Name: HyperGAN/HyperGAN
Commit Name: edf96731ef964481a23d7c0bbeb0790ce1a7419d
Time: 2020-07-11
Author: martyn@255bits.com
File Name: hypergan/distributions/uniform_distribution.py
Class Name: UniformDistribution
Method Name: __init__


Project Name: facebookresearch/pytext
Commit Name: 6dd8fccac0b366782b5319af6236d2d337a25b42
Time: 2019-11-18
Author: abhinavarora@fb.com
File Name: pytext/models/crf.py
Class Name: CRF
Method Name: _viterbi_decode


Project Name: rusty1s/pytorch_geometric
Commit Name: 1f0750670cf8ea24ad264debf9603002ab0fb565
Time: 2021-03-15
Author: matthias.fey@tu-dortmund.de
File Name: test/nn/pool/test_mem_pool.py
Class Name:
Method Name: test_mem_pool