Skip to content

Commit

Permalink
fix cuda ext
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu committed Oct 7, 2023
1 parent ae6c465 commit c8db4f4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ext/YaoToEinsumCUDAExt.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
module YaoToEinsumCUDAExt
using CUDA, YaoToEinsum

export cu

function cu(tnet::TensorNetwork)
function CUDA.cu(tnet::TensorNetwork)
return TensorNetwork(tnet.code, tnet.tensors .|> CuArray)

Check warning on line 5 in ext/YaoToEinsumCUDAExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/YaoToEinsumCUDAExt.jl#L4-L5

Added lines #L4 - L5 were not covered by tests
end
end
end

0 comments on commit c8db4f4

Please sign in to comment.