source
espnet2.asr.bayes_risk_ctc.log_substraction_exp(a, b)
return (a.exp() - b.exp()).log(): a numeracal safe implementation