-
Notifications
You must be signed in to change notification settings - Fork 3
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
To lent
or not to lent
#26
Comments
The advantage of What we can do is write a test that ensures we don't miss the transition and then use |
Ok that's a good point 👍 What does it mean to lend a ptr though? Doesn't it just mean that the pointer itself won't be released but whatever it points to could have been released? It's better than nothing regardless 😄 One other problem, if we have a |
This just regards the ArrayRef wrapped type since for Tensor & RawTensor I think I would go with a For public API, we should try to mostly expose openArray / seq and do the conversion internally. For the few that may remains, it will mainly involve seq/openArray with low number of element to ArrayRef[T] to pass as parameters so even exposing a |
Yes that seems to be the case, although it may very well be that I changed them to Yes, that seems like a reasonable thing to do. The user shouldn't be exposed to these things unless specifically asking for them ( |
Right now we use
lent UncheckedArray
instead ofptr UncheckedArray
in some places. And at the momentlent
is handled behind the scenes with pointers but from this conversation with @Clyybber it isn't guaranteed to stay that way in the future. Should we just change all functions returninglent UncheckedArray
toptr UncheckedArray
to be sure it won't break in the future?The text was updated successfully, but these errors were encountered: