Searched refs:log_prob_2 (Results 1 – 2 of 2) sorted by relevance
32 inline float LogSumExp(float log_prob_1, float log_prob_2) { in LogSumExp() argument36 return log_prob_2; in LogSumExp()37 } else if (log_prob_2 == kLogZero) { in LogSumExp()40 return (log_prob_1 > log_prob_2) in LogSumExp()41 ? log_prob_1 + log1pf(expf(log_prob_2 - log_prob_1)) in LogSumExp()42 : log_prob_2 + log1pf(expf(log_prob_1 - log_prob_2)); in LogSumExp()
34 inline float LogSumExp(float log_prob_1, float log_prob_2) { in LogSumExp() argument37 if (log_prob_1 == kLogZero && log_prob_2 == kLogZero) { in LogSumExp()40 return (log_prob_1 > log_prob_2) in LogSumExp()41 ? log_prob_1 + log1pf(expf(log_prob_2 - log_prob_1)) in LogSumExp()42 : log_prob_2 + log1pf(expf(log_prob_1 - log_prob_2)); in LogSumExp()