efc4b020f1458ed46aab5fb9894d0783de0f66c6,musegan/components.py,Nowbar,_build_discriminator,#Nowbar#,95
Before Change
gp = tf.gradients(D_hat, X_hat)[0]
gp = tf.sqrt(tf.reduce_sum(tf.square(gp), axis=1))
gp = tf.reduce_mean(tf.square(gp - 1.0) * config.lamda)
self.d_loss += gp
self.d_vars = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope=scope.name)
After Change
gp = tf.gradients(D_hat, X_hat)[0]
gp = tf.sqrt(tf.reduce_sum(tf.square(gp), axis=1))
gp = tf.reduce_mean(tf.square(gp - 1.0))
self.d_loss += gp * config.lamda
self.d_vars = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope=scope.name)
class NowbarHybrid(Nowbar):
def __init__(self, config):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: salu133445/musegan
Commit Name: efc4b020f1458ed46aab5fb9894d0783de0f66c6
Time: 2018-03-13
Author: salu133445@gmail.com
File Name: musegan/components.py
Class Name: Nowbar
Method Name: _build_discriminator
Project Name: SheffieldML/GPy
Commit Name: 6bff33e30c06efa25d52dfc8e8f08a337d8a731d
Time: 2015-08-12
Author: z.dai@sheffield.ac.uk
File Name: GPy/kern/_src/psi_comp/rbf_psi_comp.py
Class Name:
Method Name: __psi2computations
Project Name: salu133445/musegan
Commit Name: efc4b020f1458ed46aab5fb9894d0783de0f66c6
Time: 2018-03-13
Author: salu133445@gmail.com
File Name: musegan/components.py
Class Name: Temporal
Method Name: _build_discriminator