(mu, logstd)
return gauss_KL(mu1, logstd1, mu2, logstd2)
Compute KL with yourself, where the first argument is treated as a constant.
Compute KL with yourself, where the first argument is treated as a constant.
Compute KL with yourself where the first argument is treated as a constant .
def gauss_selfKL_firstfixed(mu, logstd):
    """Compute KL with yourself, where the first argument is treated as a constant. """
    mu1, logstd1 = map(tf.stop_gradient, [mu, logstd])
    mu2, logstd2 = mu, logstd

    return gauss_KL(mu1, logstd1, mu2, logstd2)
def gauss_selfKL_firstfixed ( mu , logstd ) : mu1 , logstd1 = map ( tf . stop_gradient , [ mu , logstd ] ) mu2 , logstd2 = mu , logstd return gauss_KL ( mu1 , logstd1 , mu2 , logstd2 )