Skip to content

Commit

Permalink
Reenable constructor ad tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Jul 1, 2024
1 parent c98624f commit d06cca1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/ad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,9 @@ Vlist = ((ℂ^2, (ℂ^3)', ℂ^3, ℂ^2, (ℂ^2)'),
test_rrule(copy, T1)
test_rrule(copy, T2)

T1 isa TrivialTensorMap && test_rrule(convert, Array, T1)
T2 isa TrivialTensorMap && test_rrule(TensorMap, convert(Array, T1), space(T1))
# TODO: can we make these methods/tests work for generic symmetries?
# the main problem here is finitedifferencing generates non-symmetric entries
test_rrule(convert, Array, T1)
test_rrule(TensorMap, convert(Array, T1), codomain(T1), domain(T1);
fkwargs=(; tol=Inf))
end

@timedtestset "Basic Linear Algebra with scalartype $T" for T in (Float64, ComplexF64)
Expand Down

0 comments on commit d06cca1

Please sign in to comment.