def gaussian_error_nll(mu_values, sigma_values, true_values):
    """ sigma should come from a softplus layer """
    nll = 0.5 * (mu_values - true_values) ** 2 / sigma_values ** 2 + tensor.log(
        2 * np.pi * sigma_values ** 2)
    return nll
dataset/ETHPy150Open kastnerkyle/SciPy2015/graphics_code/cvae/kdl_template.py/gaussian_error_nll/original