Home
last modified time | relevance | path

Searched refs:log_prob_2 (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/core/util/ctc/
Dctc_loss_util.h32 inline float LogSumExp(float log_prob_1, float log_prob_2) { in LogSumExp() argument
36 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()
/external/tensorflow/tensorflow/lite/experimental/kernels/
Dctc_loss_util.h34 inline float LogSumExp(float log_prob_1, float log_prob_2) { in LogSumExp() argument
37 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()