9c8dc8d6eb3208d8d442311853ca5859b0ac04aa,hypergan/trainers/adam_trainer.py,,run,#Any#,46
Before Change
_, d_cost, d_log = sess.run([d_optimizer, d_loss, d_log_t])
// in WGAN paper, values are clipped. This might not work, and is slow.
if(config.clipped_discriminator):
clip = [tf.assign(d,tf.clip_by_value(d, -config.clip_value, config.clip_value)) for d in d_vars]
sess.run(clip)
global iteration
if(d_class_loss is not None):
_, g_cost,d_fake,d_real,d_class = sess.run([g_optimizer, g_loss, d_fake_loss, d_real_loss, d_class_loss])
if iteration % 100 == 0:
After Change
_, d_cost, d_log = sess.run([d_optimizer, d_loss, d_log_t])
// in WGAN paper, values are clipped. This might not work, and is slow.
if(config.d_clipped_weights):
sess.run(gan.graph.clip)
global iteration
if(d_class_loss is not None):
_, g_cost,d_fake,d_real,d_class = sess.run([g_optimizer, g_loss, d_fake_loss, d_real_loss, d_class_loss])
if iteration % 100 == 0:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: HyperGAN/HyperGAN
Commit Name: 9c8dc8d6eb3208d8d442311853ca5859b0ac04aa
Time: 2017-02-21
Author: mikkel@255bits.com
File Name: hypergan/trainers/adam_trainer.py
Class Name:
Method Name: run
Project Name: tensorflow/cleverhans
Commit Name: fcf1e2a18e72dd42280f04a50fce3eb4e0b20fcf
Time: 2018-04-13
Author: kurakin@google.com
File Name: cleverhans/attacks.py
Class Name: BasicIterativeMethod
Method Name: generate
Project Name: HyperGAN/HyperGAN
Commit Name: c8f075268f7e5645a77eef21591a62a07e7e8baa
Time: 2017-02-28
Author: mikkel@255bits.com
File Name: hypergan/trainers/sgd_trainer.py
Class Name:
Method Name: run