Skip to content

Commit

Permalink
Add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Oct 7, 2024
1 parent cd0fd61 commit f82aada
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/cutensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,14 @@ if cuTENSOR.has_cutensor()
@test copy(C) Ccopy
end
end

@testset "Issues" verbose = true begin
@testset "Issue PR #186" begin
# https://github.com/Jutho/TensorOperations.jl/pull/186
A = randn(Float32, (5, 5, 5, 5))
Atr = @tensor A[a, b, b, a]
Atr2 = @cutensor A[a, b, b, a]
@test Atr Atr2
end
end
end

0 comments on commit f82aada

Please sign in to comment.