pub struct TensorPointerHolder { /* private fields */ }
Expand description
Holds on to a tensor pointer until dropped.
This allows for creating an OrtOwnedTensor
from a [DynOrtTensor
] without consuming self
, which would prevent
retrying extraction and avoids awkward interaction with the outputs Vec
. It also avoids requiring OrtOwnedTensor
to keep a reference to DynOrtTensor
, which would be inconvenient.
Trait Implementations§
Source§impl Debug for TensorPointerHolder
impl Debug for TensorPointerHolder
Auto Trait Implementations§
impl Freeze for TensorPointerHolder
impl RefUnwindSafe for TensorPointerHolder
impl !Send for TensorPointerHolder
impl !Sync for TensorPointerHolder
impl Unpin for TensorPointerHolder
impl UnwindSafe for TensorPointerHolder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more