57c07ec7b0ed64ee9562b1b3eb74c181dbf15ceb,hypergan/trainers/consensus_trainer.py,ConsensusTrainer,_create,#ConsensusTrainer#,28
Before Change
control_dependency = []
if config.g_exponential_moving_average_decay:
self.var_ema = tf.train.ExponentialMovingAverage(config.g_exponential_moving_average_decay)
ema = self.var_ema
ema_op = ema.apply(g_vars)
control_dependency = [ema_op]
with tf.control_dependencies(control_dependency):
optimizer = tr.apply_gradients(apply_vec, global_step=self.global_step)
d_optimizer = tr.apply_gradients(apply_vec_d, global_step=self.global_step)
g_optimizer = tr.apply_gradients(apply_vec_g, global_step=self.global_step)
After Change
with tf.control_dependencies([tr.apply_gradients(apply_vec, global_step=self.global_step)]):
optimizer = ema_op
with tf.control_dependencies([tr.apply_gradients(apply_vec_g, global_step=self.global_step)]):
g_optimizer = tr.apply_gradients(apply_vec_g, global_step=self.global_step)
d_optimizer = tr.apply_gradients(apply_vec_d, global_step=self.global_step)
else:
optimizer = tr.apply_gradients(apply_vec, global_step=self.global_step)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: 57c07ec7b0ed64ee9562b1b3eb74c181dbf15ceb
Time: 2018-06-13
Author: mikkel@255bits.com
File Name: hypergan/trainers/consensus_trainer.py
Class Name: ConsensusTrainer
Method Name: _create
Project Name: arnomoonens/yarll
Commit Name: 8fa3ead04fb9c3d25e968fceee14c7a0450f786c
Time: 2017-05-13
Author: x-006@hotmail.com
File Name: agents/async_knowledge_transfer.py
Class Name: AsyncKnowledgeTransfer
Method Name: __init__
Project Name: HyperGAN/HyperGAN
Commit Name: 1e339c1a0a186da155c9dc2ab8798075d248dc3e
Time: 2018-11-06
Author: mikkel@255bits.com
File Name: hypergan/optimizers/curl_optimizer.py
Class Name: CurlOptimizer
Method Name: apply_gradients
Project Name: HyperGAN/HyperGAN
Commit Name: f633f14e56c45a5027201de9a31d995b44b7c147
Time: 2018-06-11
Author: martyn@255bits.com
File Name: hypergan/trainers/consensus_trainer.py
Class Name: ConsensusTrainer
Method Name: _create