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
We can mention this in the docs if we aren't already. Calling Tracker.data(x) seems like it's about as simple as this is going to get though.
The AbstractArray{<:TrackedReal} thing is tricky, especially because you don't want AbstractArray{Any} to behave differently. But I don't think it'd hurt to just always broadcast over any abstractarray.
See each this conversation.
I can never remember how to do it.
And I always endup looking around the code base for:
Flux.jl/src/tracker/scalar.jl
Line 8 in b93d476
related:
Is
data(xs::AbstractArray{<:TrackedReal}) = data.(xs)
defined?Possibly it should be, if not
so that
AbstractArray{<:TrackedReal}
andTrackedArray
act the sameThe text was updated successfully, but these errors were encountered: