コード例 #1
0
 def _log_unnormalized_prob(self, x):
   if self.validate_args:
     x = distribution_util.embed_check_nonnegative_integer_form(x)
   return (self.total_count * math_ops.log_sigmoid(-self.logits)
           + x * math_ops.log_sigmoid(self.logits))
コード例 #2
0
 def _log_unnormalized_prob(self, x):
     if self.validate_args:
         x = distribution_util.embed_check_nonnegative_integer_form(x)
     return (self.total_count * math_ops.log_sigmoid(-self.logits) +
             x * math_ops.log_sigmoid(self.logits))