Skip to content

Commit 75615ef

Browse files
committed
Fix norm test for hashing issue on 1.10
1 parent 007bba7 commit 75615ef

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎test/enzyme-linalg/norm.jl‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ fRTs = is_ci ? (Duplicated,) : (Const, Duplicated)
1414
@timedtestset "$(TensorKit.type_repr(sectortype(eltype(V)))) ($T), TC $TC" for V in spacelist, T in eltypes, TC in (Const, Duplicated)
1515
atol = default_tol(T)
1616
rtol = default_tol(T)
17-
C = randn(T, V[1] ⊗ V[2] ← (V[3] ⊗ V[4] ⊗ V[5])')
17+
# see https://github.com/QuantumKitHub/TensorKit.jl/issues/457
18+
@static if VERSION < v"1.11.0-rc"
19+
C = randn(T, V[1] ⊗ V[2] ← (V[4] ⊗ V[5])')
20+
else
21+
C = randn(T, V[1] ⊗ V[2] ← (V[3] ⊗ V[4] ⊗ V[5])')
22+
end
1823
for RT in rRTs
1924
EnzymeTestUtils.test_reverse(norm, RT, (C, TC), (2, Const); atol, rtol)
2025
EnzymeTestUtils.test_reverse(norm, RT, (C', TC), (2, Const); atol, rtol)

0 commit comments

Comments
 (0)