Skip to content

Commit 534a4f2

Browse files
committed
Improve signature of rrule for _with_ladj_on_mapped
1 parent a5eac2c commit 534a4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/with_ladj.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function _with_ladj_on_mapped_pullback(thunked_ΔΩ)
9191
return NoTangent(), NoTangent(), tuple.(ys, ladj)
9292
end
9393

94-
function ChainRulesCore.rrule(::typeof(_with_ladj_on_mapped), map_or_bc::Function, y_with_ladj)
94+
function ChainRulesCore.rrule(::typeof(_with_ladj_on_mapped), map_or_bc::F, y_with_ladj) where {F<:Union{typeof(map),typeof(broadcast)}}
9595
return _with_ladj_on_mapped(map_or_bc, y_with_ladj), _with_ladj_on_mapped_pullback
9696
end
9797

0 commit comments

Comments
 (0)