Skip to content

Commit b200f86

Browse files
committed
t push origin mt/:Merge branch 'mt/fixes_threaded' of https://github.com/TuringLang/DynamicPPL.jl into mt/fixes_threaded
2 parents 7914cad + 8c4c5f8 commit b200f86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compat/ad.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ ZygoteRules.@adjoint function push!(
77
dist::Distribution,
88
gidset::Set{Selector}
99
)
10-
return push!(vi, vn, r, dist, gidset), _ -> ntuple(_ -> nothing, 5)
10+
return push!(vi, vn, r, dist, gidset), _ -> nothing
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)