Cython MR ownership and resource_refs #1662
Replies: 3 comments 7 replies
-
In spite of the "hack", @wence-, I do like the way you've encapsulated the hack in an object so that each derived MR type just has to copy and modify a single line to implement ownership and I think we still have the problem of Cython not being able to return a |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
The reason that the issue of current device resource changing underneath a library has never worried me is because this is how I think about
This is not particularly well documented. BTW, I noticed that PyTorch has an even more strict (and enforced) If you set the external CUDA allocator for Pytorch, it is an error to set it again. |
Beta Was this translation helpful? Give feedback.
-
@wence- wrote the following as a comment on a PR. I wanted to move it here where we can have a better discussion.
Beta Was this translation helpful? Give feedback.
All reactions