shadow-orange41
shadow-orange41
[error_message.txt](https://github.com/user-attachments/files/24036995/error_message.txt) Hi, I'm working on using Enzyme to compute derivatives involving matrices, and I noticed an issue when using the `enzyme_out` annotation. Compilation fails in this case, but using `enzyme_dup`...
When differentiating `abs(x)` at `x = 0`, Enzyme produces a gradient of 1, while other AD tools, such as CppAD, CodiPack, and Adept, return 0. I understand that the gradient...
Enzyme returns `NaN` Hessian entries for a scalar function involving saturated `tanh`, even though the expected Hessian is finite and evaluates to zero in double precision. This appears related to...
I am trying to use Enzyme to differentiate functions involving `std::complex` values. I found that most operators are unsupported. Is this expected? Specifically, - pow(a, b) when a or b...
When using Enzyme’s forward-mode API (`__enzyme_fwddiff`) to compute gradients through `Eigen::Matrix::inverse()` for fixed-size matrices, compilation fails when `N >= 4` (reproduced with `N = 4`). The same code compiles and...
Environment: - OS: - Compiler: clang++ -std=c++17 - Enzyme commit: 8cf040b1 I’m seeing a compile-time failure (log attached in error.txt) when differentiating an Eigen-based function with Enzyme. The failure happens...
### Description I found a small `float16` example where `jax.hessian` returns `nan`, while the same mathematical function gives a finite second derivative in both PyTorch and TensorFlow. ### Minimal reproducer...
### Description For float16 input, `jnp.linalg.norm` already upcasts to float32 to accumulate `sum(x * conj(x))` — and then converts the sum **back to float16 before taking the `sqrt`**. The narrowing...
### Description On some `2x2` and `3x3` inputs `jnp.linalg.det` returns a determinant with the wrong sign and a relative error of several hundred percent, or returns `inf` / `nan` where...
### Description `jax.jacfwd`/`jax.jacrev` of `jnp.linalg.eigh`'s eigenvectors return an all-`NaN` Jacobian whenever the input matrix's eigenvalues exceed roughly `2^p`, where `p` is the number of significant mantissa bits for the dtype...