def _log_prob(self, given):
mean, logstd = self.path_param(self.mean),\
self.path_param(self.logstd)
c = -0.5 * np.log(2 * np.pi)
precision = tf.exp(-2 * logstd)
if self._check_numerics:
precision = tf.check_numerics(precision, "precision")
return c - logstd - 0.5 * precision * tf.square(given - mean)
评论列表
文章目录