Skip to content

Commit

Permalink
Handle static arrays with Mooncake (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored Dec 6, 2024
1 parent ae87c32 commit c20083f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using Mooncake:
DI.check_available(::AutoMooncake) = true

copyto!!(dst::Number, src::Number) = convert(typeof(dst), src)
copyto!!(dst, src) = copyto!(dst, src)
copyto!!(dst, src) = DI.ismutable_array(dst) ? copyto!(dst, src) : convert(typeof(dst), src)

get_config(::AutoMooncake{Nothing}) = Config()
get_config(backend::AutoMooncake{<:Config}) = backend.config
Expand Down

0 comments on commit c20083f

Please sign in to comment.