dotnet / infer

Infer.NET is a framework for running Bayesian inference in graphical models
https://dotnet.github.io/infer/
MIT License
1.54k stars 229 forks source link

Return negative infinity in logsumexp on empty input #418

Closed myshkov closed 1 year ago

myshkov commented 1 year ago

LogSumExp and LogSumExpSparse now returns negative infinity when the input is an empty enumerable, instead of throwing an exception.