def log_likelihood(tgt, mu, ls):
    return T.sum(-(np.float32(0.5 * np.log(2 * np.pi)) + ls)
            - 0.5 * T.sqr(mu - tgt) / T.exp(2 * ls))

# from the array used for testing, to the kind used in Image.fromarray(..)
dataset/ETHPy150Open woshialex/diagnose-heart/CNN_A/utils.py/log_likelihood/swapped operands of `-`