68729f8b6458c3ae3cc26b895d00d1326e5d1c2d,hypergan/trainers/simultaneous_trainer.py,SimultaneousTrainer,_create,#SimultaneousTrainer#,12
Before Change
for grad, v in apply_vec:
if grad is None:
print("Gradient is None:", v)
self.gan.gradient_mean = sum([tf.reduce_mean(tf.abs(grad)) for grad in d_grads+g_grads])/len(d_grads+g_grads)
self.g_loss = g_loss
self.d_loss = d_loss
self.gan.trainer = self
After Change
for grad, v in apply_vec:
if grad is None:
print("Gradient is None:", v)
for t in self.train_hooks:
d_grads, g_grads = t.gradients(d_grads, g_grads)
self.g_loss = g_loss
self.d_loss = d_loss
self.gan.trainer = self
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: 68729f8b6458c3ae3cc26b895d00d1326e5d1c2d
Time: 2019-11-16
Author: mikkel@255bits.com
File Name: hypergan/trainers/simultaneous_trainer.py
Class Name: SimultaneousTrainer
Method Name: _create
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 9bc56cc177b7997d6b4a30d204a08ef95a03a343
Time: 2018-05-09
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/virtual_adversarial.py
Class Name: VirtualAdversarialMethod
Method Name: generate
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 557622faca0328c0303b824006c5fe11cc87cca1
Time: 2018-05-09
Author: mathsinn@ie.ibm.com
File Name: art/attacks/virtual_adversarial.py
Class Name: VirtualAdversarialMethod
Method Name: generate
Project Name: HyperGAN/HyperGAN
Commit Name: 594da79c98f360331613f786918f08957c39d13c
Time: 2019-12-05
Author: mikkel@255bits.com
File Name: hypergan/trainers/simultaneous_trainer.py
Class Name: SimultaneousTrainer
Method Name: _create