cf1ec69f7c4290f9959b1d902d35ce6d72c48995,hypergan/train_hooks/adversarial_norm_train_hook.py,AdversarialNormTrainHook,__init__,#AdversarialNormTrainHook#Any#Any#Any#,12

Before Change


                        self.config.gammas[1]//torch.Tensor([self.config.gammas[1]]).float()[0].cuda()//self.gan.configurable_param(self.config.gamma or 1.0)
                    ]
        self.relu = torch.nn.ReLU()
        self.target = [Parameter(x, requires_grad=True) for x in self.gan.discriminator_real_inputs()]
        self.x_mod_target = torch.zeros_like(self.target[0])
        self.g_mod_target = torch.zeros_like(self.target[0])

    def forward(self, d_loss, g_loss):

After Change


                        self.config.gammas[0],//torch.Tensor([self.config.gammas[0]]).float()[0].cuda(),//self.gan.configurable_param(self.config.gamma or 1.0)
                        self.config.gammas[1]//torch.Tensor([self.config.gammas[1]]).float()[0].cuda()//self.gan.configurable_param(self.config.gamma or 1.0)
                    ]
        self.relu = torch.nn.ReLU()
        self.target = [Parameter(x, requires_grad=True) for x in self.gan.discriminator_real_inputs()]
        self.x_mod_target = torch.zeros_like(self.target[0])
        self.g_mod_target = torch.zeros_like(self.target[0])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: cf1ec69f7c4290f9959b1d902d35ce6d72c48995
Time: 2020-08-22
Author: martyn@255bits.com
File Name: hypergan/train_hooks/adversarial_norm_train_hook.py
Class Name: AdversarialNormTrainHook
Method Name: __init__


Project Name: evilsocket/pwnagotchi
Commit Name: a62016c5b45d44d86cdef3b2dc48f6d413f4e6c4
Time: 2019-09-21
Author: evilsocket@gmail.com
File Name: sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ai/gym.py
Class Name: Environment
Method Name: Environment_1


Project Name: allenai/allennlp
Commit Name: a8f7adae8546cfac4473bd514b0070367d725f2e
Time: 2018-05-13
Author: pradeep.dasigi@gmail.com
File Name: allennlp/models/semantic_parsing/nlvr/nlvr_semantic_parser.py
Class Name: NlvrSemanticParser
Method Name: __init__