Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Nov 15, 2023
1 parent 124bbb6 commit 5473ea3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/norecompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ function wrapfun_iip(ff,
dualT = dualgen(T)
dualT1 = ArrayInterface.promote_eltype(T1, dualT)
dualT2 = ArrayInterface.promote_eltype(T2, dualT)
dualT4 = dualgen(T4)
dualT4_T = promote_dual(dualT4, dualT)
dualT4 = promote_dual(dualgen(T4), dualT)

Check warning on line 60 in src/norecompile.jl

View check run for this annotation

Codecov / codecov/patch

src/norecompile.jl#L60

Added line #L60 was not covered by tests

iip_arglists = (Tuple{T1, T2, T3, T4}, # primal

Check warning on line 62 in src/norecompile.jl

View check run for this annotation

Codecov / codecov/patch

src/norecompile.jl#L62

Added line #L62 was not covered by tests
Tuple{dualT1, dualT2, T3, T4}, # vjp
Tuple{dualT1, T2, T3, dualT4}, # tgrad
Tuple{dualT1, T2, T3, dualT4_T}, # tgrad inside gradient wrt initial conditions
)

iip_returnlists = ntuple(x -> Nothing, length(iip_arglists))

Check warning on line 67 in src/norecompile.jl

View check run for this annotation

Codecov / codecov/patch

src/norecompile.jl#L67

Added line #L67 was not covered by tests
Expand Down

0 comments on commit 5473ea3

Please sign in to comment.