You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Wed, Jul 14, 2021 at 6:23 AM Jeff Fessler ***@***.***> wrote:
Would it be possible to make Param(x) have a subtype of AbstractArray
(when x is)?
julia> x = [1, 2]2-element Vector{Int64}:
1
2
julia> xp = Param(x)2-element Param{Vector{Int64}}:
1
2
julia> xp isa AbstractArrayfalse
So currently the Param version xp cannot be passed to any functions that
are expecting AbstractArray inputs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#125>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN43JS3SUNF35IKWT427TLTXT7KTANCNFSM5AKSJ7DQ>
.
Would it be possible to make
Param(x)
have a subtype ofAbstractArray
(whenx
is)?So currently the
Param
versionxp
cannot be passed to any functions that are expectingAbstractArray
inputs.Edit: I guess it's really
AutoGrad.Value{Vector{Int64}}
that I am wondering if could be a subtype of AA.The text was updated successfully, but these errors were encountered: