-
Beta Was this translation helpful? Give feedback.
Answered by
mikowals
Feb 5, 2024
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Rick0827
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sample
owns the pointer and is destroyed after its last use. Sofree()
is called on the pointer before you read from it. You can either keep the tensor from being destroyed by using it after you read the pointer or you can take ownership of the pointer withsample._steal_ptr()
.