You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using LinearSolve, Zygote, SciMLSensitivity
const N =10f(b) =sum(solve(LinearProblem(randn(N, N), b)).u)
Zygote.gradient(f, randn(N))
but it fails for N > 10 with:
ERROR: MethodError: no method matching getrs!(::Char, ::Matrix{Float64}, ::Vector{Int32}, ::Vector{Float64})
The function `getrs!` exists, but no method is defined for this combination of argument types.
Expected behavior
It should work!
Minimal Reproducible Example 👇
using LinearSolve, Zygote, SciMLSensitivity
const N =11f(b) =sum(solve(LinearProblem(randn(N, N), b)).u)
Zygote.gradient(f, randn(N))
Describe the bug 🐞
This works:
but it fails for
N > 10
with:Expected behavior
It should work!
Minimal Reproducible Example 👇
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
The text was updated successfully, but these errors were encountered: