-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Hi there, and thanks for the great package
Are ComponentArrays supposed to be AD-compatible? If so, did I do something wrong with the following code?
julia> using ComponentArrays, Zygote
julia> function mysum(x::AbstractVector)
y = ComponentVector(x=x)
return sum(y)
end
mysum (generic function with 1 method)
julia> Zygote.gradient(mysum, rand(10))
ERROR: MethodError: no method matching size(::NamedTuple{(:x,), Tuple{Vector{Float64}}})roflmaostc
Metadata
Metadata
Assignees
Labels
No labels