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> supertypes(typeof(xp))
(Param{Vector{Int64}}, AutoGrad.Tracked{Vector{Int64}}, AutoGrad.Value{Vector{Int64}}, Any)
julia> xp isa AbstractArray
false
So currently the Param version xp cannot be passed to any functions that are expecting AbstractArray inputs.
Edit: I guess it's really AutoGrad.Value{Vector{Int64}} that I am wondering if could be a subtype of AA.
Would it be possible to make
Param(x)have a subtype ofAbstractArray(whenxis)?So currently the
Paramversionxpcannot be passed to any functions that are expectingAbstractArrayinputs.Edit: I guess it's really
AutoGrad.Value{Vector{Int64}}that I am wondering if could be a subtype of AA.