Skip to content

Commit 47ba954

Browse files
author
Katharine Hyatt
committed
Even more splitting
1 parent 715a7f1 commit 47ba954

5 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/CI.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
- enzyme/tensoroperations
3737
- enzyme/vectorinterface
3838
- enzyme/indexmanipulations/add
39-
- enzyme/indexmanipulations/flip_twist_unit
39+
- enzyme/indexmanipulations/unit
40+
- enzyme/indexmanipulations/flip_twist
4041
- chainrules
4142
os:
4243
- ubuntu-latest
@@ -54,7 +55,9 @@ jobs:
5455
- os: macos-latest
5556
group: enzyme/indexmanipulations/add
5657
- os: macos-latest
57-
group: enzyme/indexmanipulations/flip_twist_unit
58+
group: enzyme/indexmanipulations/flip_twist
59+
- os: macos-latest
60+
group: enzyme/indexmanipulations/unit
5861
- os: windows-latest
5962
group: enzyme/factorizations
6063
- os: windows-latest
@@ -66,7 +69,9 @@ jobs:
6669
- os: windows-latest
6770
group: enzyme/indexmanipulations/add
6871
- os: windows-latest
69-
group: enzyme/indexmanipulations/flip_twist_unit
72+
group: enzyme/indexmanipulations/flip_twist
73+
- os: windows-latest
74+
group: enzyme/indexmanipulations/unit
7075
uses: "QuantumKitHub/QuantumKitHubActions/.github/workflows/Tests.yml@main"
7176
with:
7277
group: "${{ matrix.group }}"
File renamed without changes.
File renamed without changes.

test/enzyme/indexmanipulations/flip_twist_unit/insertunit.jl renamed to test/enzyme/indexmanipulations/unit/insertunit.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ spacelist = (
4242
eltypes = (Float64, ComplexF64)
4343

4444
@timedtestset verbose = true "Enzyme - Index Manipulations (insertunit):" begin
45-
@timedtestset verbose = true "$(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes
45+
@timedtestset verbose = true "$(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes, TA in (Duplicated,)
4646
atol = default_tol(T)
4747
rtol = default_tol(T)
4848
A = randn(T, V[1] V[2] V[4] V[5])
49-
@testset for insertunit in (insertleftunit, insertrightunit), TA in (Duplicated,)
49+
@testset for insertunit in (insertleftunit, insertrightunit)
5050
EnzymeTestUtils.test_reverse(insertunit, TA, (A, TA), (Val(1), Const); atol, rtol)
5151
EnzymeTestUtils.test_reverse(insertunit, TA, (A, TA), (Val(4), Const); atol, rtol)
5252
EnzymeTestUtils.test_reverse(insertunit, TA, (A', TA), (Val(2), Const); atol, rtol)

test/enzyme/indexmanipulations/flip_twist_unit/removeunit.jl renamed to test/enzyme/indexmanipulations/unit/removeunit.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ spacelist = (
4141
)
4242
eltypes = (Float64, ComplexF64)
4343

44-
@timedtestset verbose = true "Enzyme - Index Manipulations:" begin
45-
@timedtestset verbose = true "$(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes
44+
@timedtestset verbose = true "Enzyme - Index Manipulations (removeunit):" begin
45+
@timedtestset verbose = true "$(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes, TB in (Duplicated,)
4646
atol = default_tol(T)
4747
rtol = default_tol(T)
4848
A = randn(T, V[1] V[2] V[4] V[5])
49-
for TB in (Duplicated,), i in 1:2
49+
for i in 1:2
5050
B = insertleftunit(A, i; dual = rand(Bool))
51-
EnzymeTestUtils.test_reverse(removeunit, TB, (B, TB), (Val(i), Const); atol, rtol)
5251
EnzymeTestUtils.test_reverse(removeunit, TB, (B, TB), (Val(i), Const); atol, rtol, fkwargs = (copy = false,))
5352
EnzymeTestUtils.test_reverse(removeunit, TB, (B, TB), (Val(i), Const); atol, rtol, fkwargs = (copy = true,))
5453
end

0 commit comments

Comments
 (0)