bd155f2d58357de72c4a80699fde34e2c515c540,codes/models/SFTGAN_ACD_model.py,SFTGAN_ACD_Model,__init__,#SFTGAN_ACD_Model#Any#,18
Before Change
self.input_L = self.Tensor()
self.input_H = self.Tensor()
self.input_seg = self.Tensor()
self.input_cat = self.Tensor().long() // category
// define networks and load pretrained models
self.netG = networks.define_G(opt) // G
After Change
self.D_init_iters = train_opt["D_init_iters"] if train_opt["D_init_iters"] else 0
if train_opt["gan_type"] == "wgan-gp":
self.random_pt = torch.Tensor(1, 1, 1, 1).to(self.device)
// gradient penalty loss
self.cri_gp = GradientPenaltyLoss(tensor=self.Tensor)
self.l_gp_w = train_opt["gp_weigth"]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: xinntao/BasicSR
Commit Name: bd155f2d58357de72c4a80699fde34e2c515c540
Time: 2018-06-16
Author: wxt1994@126.com
File Name: codes/models/SFTGAN_ACD_model.py
Class Name: SFTGAN_ACD_Model
Method Name: __init__
Project Name: dmlc/dgl
Commit Name: 68a978d4de27b6625870e1ea4242075e990922f4
Time: 2020-07-29
Author: coin2028@hotmail.com
File Name: examples/pytorch/jtnn/jtnn/jtnn_dec.py
Class Name: DGLJTNNDecoder
Method Name: run
Project Name: arraiy/torchgeometry
Commit Name: d7efcdf78ef3d0f15b0ac737f049ffc3c2f4fc87
Time: 2020-11-02
Author: sj8716643@126.com
File Name: kornia/augmentation/random_generator/random_generator.py
Class Name:
Method Name: random_cutmix_generator
Project Name: pytorch/pytorch
Commit Name: d30f4d1dfd5237d89834363ce2cff9de4ee92811
Time: 2021-03-03
Author: 24860335+xwang233@users.noreply.github.com
File Name: torch/nn/modules/_functions.py
Class Name: SyncBatchNorm
Method Name: forward