Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 18d7184

Browse files
committed
Fix static_hasmethod call
1 parent 3572380 commit 18d7184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/SparseDiffToolsZygoteExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ end
9595

9696
# VJP methods
9797
function auto_vecjac!(du, f, x, v)
98-
!static_hasmethod(f, (typeof(x),)) &&
98+
!static_hasmethod(f, typeof((x,))) &&
9999
error("For inplace function use autodiff = AutoFiniteDiff()")
100100
du .= reshape(SparseDiffTools.auto_vecjac(f, x, v), size(du))
101101
end

0 commit comments

Comments
 (0)