-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
using Test
using TensorOperations
using CUDA
@testset "A*B" for atype in [Array, CuArray]
A = atype(randn(ComplexF64, 3, 4))
B = atype(randn(ComplexF64, 4, 5))
C1 = similar(A, ComplexF64, 3, 5)
@tensor C1[a,c] = A[a,b] * B[b,c]
C2 = A * B
@test C1 ≈ C2
endfor CuArray I got the error:
Got exception outside of a @test
ArgumentError: No suitable backend found for tensorcontract! and tensor types CuArray{ComplexF64, 2, CUDA.DeviceMemory}, CuArray{ComplexF64, 2, CUDA.DeviceMemory} and CuArray{ComplexF64, 2, CUDA.DeviceMemory}
Metadata
Metadata
Assignees
Labels
No labels