Skip to content

Commit 08dac12

Browse files
Update src/compat/ad.jl
Co-authored-by: David Widmann <[email protected]>
1 parent 10039f0 commit 08dac12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compat/ad.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ ZygoteRules.@adjoint function push!(
1111
end
1212

1313
ZygoteRules.@adjoint function Threads.nthreads()
14-
Threads.nthreads(), _ -> (nothing,)
14+
return Threads.nthreads(), _ -> nothing
1515
end
1616
ZygoteRules.@adjoint function Threads.threadid()
17-
Threads.threadid(), _ -> (nothing,)
17+
return Threads.threadid(), _ -> nothing
1818
end

0 commit comments

Comments
 (0)