-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Base.parent
work on TrackedArrays
#35
Comments
As in, Problem is that it conflicts with the normal meaning |
yes.
Is that really the normal meaning of parent?
|
It does hold in the sense that if you pass a We could do this if we reliably treated tracking as if it were a view (so that you could have adjoint-of-tracked, view-of-tracked etc.) but that has its own problems w.r.t. dispatch of matmul and so on, so it's not the route we've taken. |
Context: This can be revisited later, when and if that idea firms up. |
Most wrapper arrays define
Base.parent
to get the inner array.For consistency it would be nice if
TrackedArray
did also.For most used
Tracker.data
is what you want, because you want something that does identity to nontracked arrays.But for a few things you do actually want to access the
parent
The text was updated successfully, but these errors were encountered: