-
We've been using logsumexp in scipy and casadi, and would love to see an implementation in symengine too.
-
## 🚀 Feature
torch.scatter_add will distribute values over an output tensor, summing if multiple values land in the same destination coordinate.
torch.logsumexp performs addition in linear space o…
fuzic updated
4 months ago
-
-
This RFC seeks to include a new API in the array API specification for the purpose of computing the log of summed exponentials.
## Overview
The Array API specification currently includes `logadd…
-
```
{
"name": "CompilationError",
"message": "at 53:4:
loss_ptr += row_idx
logsumexp_ptr += row_idx * N_CHUNKS + chunk_idx
labels_ptr += row_idx
col_offsets = chun…
-
Let `w, x` be vectors. I'm interested in computing `log(dot(w, exp.(x))`. The current `logsumexp` functions can be used to compute this, but one must take `log.(w)`which is troublesome when `w` can be…
-
How about having a version that takes a function to avoid allocation when doing `logsumexp(f.(x))` ?
Would you be open to a PR?
-
### Description
The gradient of `jax.scipy.special.logsumexp` along `b` is wrong when `b` contains a `0`. In the following example, the gradient of $f(x_1, x_2) = \log(x_1 + x_2)$ should be:
```math…
-
Is it possible to add logsumexp-plus (or am I missing it) ? Would be really useful, but seems a bit more complex than the other to do.
srush updated
2 years ago
-
hi @fwilliams,
in recent pytorch versions it has been introduced [`torch.logsumexp`](https://pytorch.org/docs/stable/torch.html#torch.logsumexp) which I think that could be used to replace [`stabil…