9c8dc8d6eb3208d8d442311853ca5859b0ac04aa,hypergan/trainers/adam_trainer.py,,run,#Any#,46

Before Change



    // 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):

After Change



    // 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])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

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: MorvanZhou/tutorials
Commit Name: 45a1d730e78a711132dbf16e856c32e5711d7f12
Time: 2017-02-21
Author: morvanzhou@hotmail.com
File Name: Reinforcement_learning_TUT/5_Deep_Q_Network/RL_brain.py
Class Name: DeepQNetwork
Method Name: _replace_target_params


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


Project Name: MorvanZhou/tutorials
Commit Name: 45a1d730e78a711132dbf16e856c32e5711d7f12
Time: 2017-02-21
Author: morvanzhou@hotmail.com
File Name: Reinforcement_learning_TUT/6_OpenAI_gym/RL_brain.py
Class Name: DeepQNetwork
Method Name: _replace_target_params