Searched refs:kLogZero (Results 1 – 8 of 8) sorted by relevance
45 BeamProbability() : total(kLogZero), blank(kLogZero), label(kLogZero) {} in BeamProbability()47 total = kLogZero; in Reset()48 blank = kLogZero; in Reset()49 label = kLogZero; in Reset()64 inline bool Active() const { return newp.total != kLogZero; } in Active()
26 const float kLogZero = -std::numeric_limits<float>::infinity(); variable35 if (log_prob_1 == kLogZero) { in LogSumExp()37 } else if (log_prob_2 == kLogZero) { in LogSumExp()
29 log_alpha->setConstant(kLogZero); in CalculateForwardVariables()50 float sum_log_alpha = kLogZero; in CalculateForwardVariables()85 log_beta->setConstant(kLogZero); in CalculateBackwardVariables()143 if (log_p_z_x == kLogZero) { in CalculateGradient()155 prob_sum.setConstant(kLogZero); in CalculateGradient()
328 return (prob.total > kLogZero && in Step()350 c.newp.blank = kLogZero; in Step()
225 float log_p_z_x = kLogZero; in CalculateLoss()
44 BeamProbability() : total(kLogZero), blank(kLogZero), label(kLogZero) {} in BeamProbability()46 total = kLogZero; in Reset()47 blank = kLogZero; in Reset()48 label = kLogZero; in Reset()63 inline bool Active() const { return newp.total != kLogZero; } in Active()
28 const float kLogZero = -std::numeric_limits<float>::infinity(); variable37 if (log_prob_1 == kLogZero && log_prob_2 == kLogZero) { in LogSumExp()38 return kLogZero; in LogSumExp()
325 return (prob.total > kLogZero && in Step()347 c.newp.blank = kLogZero; in Step()