Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 14, 2024
1 parent 2d3f43b commit 67e6626
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Enzyme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ code, as well as high-order differentiation.
A2 = A

if A isa UnionAll
rt = Compiler.primal_return_type(mode, FTy, tt)
rt = Compiler.primal_return_type(Reverse, FTy, tt)
A2 = A{rt}
if rt == Union{}
rt = Nothing
Expand Down Expand Up @@ -840,7 +840,7 @@ code, as well as high-order differentiation.
FT = Core.Typeof(f.val)

if RT isa UnionAll
rt = Compiler.primal_return_type(mode, FT, tt)
rt = Compiler.primal_return_type(Forward, FT, tt)
if rt == Union{}
rt = Nothing
end
Expand Down Expand Up @@ -1382,7 +1382,7 @@ result, ∂v, ∂A
TT = Tuple{args...}

primal_tt = Tuple{map(eltype, args)...}
rt0 = Compiler.primal_return_type(mode, eltype(FA), primal_tt)
rt0 = Compiler.primal_return_type(Reverse, eltype(FA), primal_tt)

rt = Compiler.remove_innerty(A2){rt0}

Expand Down

0 comments on commit 67e6626

Please sign in to comment.