Skip to content

Commit

Permalink
Removed dependence on ExponentialUtilities (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbosse committed Nov 3, 2023
1 parent 36a69f3 commit 05f365f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "CuYao"
uuid = "b48ca7a8-dd42-11e8-2b8e-1b7706800275"
version = "0.3.8"
version = "0.3.9"

[deps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
Expand All @@ -15,6 +15,7 @@ CUDA = "4, 5"
Reexport = "0.2, 1"
TupleTools = "1"
Yao = "0.8"
YaoBlocks = "0.13.10"
julia = "1"

[extras]
Expand Down
4 changes: 2 additions & 2 deletions src/CUDApatch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ end
YaoBlocks.AD.as_scalar(x::DenseCuArray) = Array(x)[]

# patch for ExponentialUtilities
YaoBlocks.ExponentialUtilities.compatible_multiplicative_operand(::CuArray, source::AbstractArray) = CuArray(source)
YaoBlocks.ExponentialUtilities.compatible_multiplicative_operand(::CuArray, source::CuArray) = source
YaoBlocks.compatible_multiplicative_operand(::CuArray, source::AbstractArray) = CuArray(source)
YaoBlocks.compatible_multiplicative_operand(::CuArray, source::CuArray) = source

0 comments on commit 05f365f

Please sign in to comment.