Skip to content

Commit 3342169

Browse files
kshyattKatharine Hyatt
andauthored
Try re-enabling the planarcontract fwd test (#574)
* Try re-enabling the planarcontract fwd test * Mark some more things inactive --------- Co-authored-by: Katharine Hyatt <katharine.s.hyatt@gmail.com>
1 parent 97cbcca commit 3342169

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎ext/TensorKitEnzymeExt/utility.jl‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ end
145145
@inline EnzymeRules.inactive(::typeof(TensorKit.fsbraid), ::Any) = nothing
146146
@inline EnzymeRules.inactive(::typeof(TensorKit.fsbraid), ::Any, ::Any) = nothing
147147
@inline EnzymeRules.inactive(::typeof(TensorKit.artin_braid), ::Any, ::Any) = nothing
148+
@inline EnzymeRules.inactive(::typeof(TensorKit.fstranspose), ::Any) = nothing
149+
@inline EnzymeRules.inactive(::typeof(TensorKit.fstranspose), ::Any, ::Any) = nothing
150+
@inline EnzymeRules.inactive(::typeof(TensorKit.treetransposer), ::Any...) = nothing
151+
@inline EnzymeRules.inactive(::typeof(TensorKit.treebraider), ::Any...) = nothing
148152
@inline EnzymeRules.inactive(::typeof(TensorKit.insertleftunit), ::HomSpace, ::Any) = nothing
149153
@inline EnzymeRules.inactive(::typeof(TensorKit.insertrightunit), ::HomSpace, ::Any) = nothing
150154
@inline EnzymeRules.inactive(::typeof(TensorKit.removeunit), ::HomSpace, ::Any) = nothing

‎test/enzyme/mul.jl‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ fTs(::One, is_ci::Bool) = (Const,)
8181
for Tα in rTαs, Tβ in rTβs
8282
EnzymeTestUtils.test_reverse(TensorKit.planarcontract!, TC, (C, TC), (A, TA), (pA, Const), (B, TB), (pB, Const), (pAB, Const), (α, Tα), (β, Tβ); atol, rtol, testset_name = "planarcontract! Tα = $Tα, Tβ = $Tβ")
8383
end
84-
# TODO broken internally in Enzyme?
85-
#for Tα in fTαs, Tβ in fTβs
86-
# EnzymeTestUtils.test_forward(TensorKit.planarcontract!, TC, (C, TC), (A, TA), (pA, Const), (B, TB), (pB, Const), (pAB, Const), (α, Tα), (β, Tβ); atol, rtol, testset_name = "planarcontract! Tα = $Tα, Tβ = $Tβ")
87-
#end
84+
for Tα in fTαs, Tβ in fTβs
85+
EnzymeTestUtils.test_forward(TensorKit.planarcontract!, TC, (C, TC), (A, TA), (pA, Const), (B, TB), (pB, Const), (pAB, Const), (α, Tα), (β, Tβ); atol, rtol, testset_name = "planarcontract! Tα = $Tα, Tβ = $Tβ")
86+
end
8887
end
8988
end
9089
end

0 commit comments

Comments
 (0)