pub struct OrtOwnedTensor<'t, 'm, T, D>{ /* private fields */ }
Expand description
Tensor containing data owned by the ONNX Runtime C library, used to return values from inference.
This tensor type is returned by the Session::run()
method.
It is not meant to be created directly.
The tensor hosts an ndarray::ArrayView
of the data on the C side. This allows manipulation on the Rust side using ndarray
without copying the data.
OrtOwnedTensor
implements the std::deref::Deref
trait for ergonomic access to
the underlying ndarray::ArrayView
.
Implementations§
Source§impl<'t, 'm, T, D> OrtOwnedTensor<'t, 'm, T, D>
impl<'t, 'm, T, D> OrtOwnedTensor<'t, 'm, T, D>
Trait Implementations§
Source§impl<'t, 'm, T, D> Debug for OrtOwnedTensor<'t, 'm, T, D>
impl<'t, 'm, T, D> Debug for OrtOwnedTensor<'t, 'm, T, D>
Source§impl<'t, 'm, T, D> Drop for OrtOwnedTensor<'t, 'm, T, D>
impl<'t, 'm, T, D> Drop for OrtOwnedTensor<'t, 'm, T, D>
Auto Trait Implementations§
impl<'t, 'm, T, D> Freeze for OrtOwnedTensor<'t, 'm, T, D>where
D: Freeze,
impl<'t, 'm, T, D> RefUnwindSafe for OrtOwnedTensor<'t, 'm, T, D>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<'t, 'm, T, D> !Send for OrtOwnedTensor<'t, 'm, T, D>
impl<'t, 'm, T, D> !Sync for OrtOwnedTensor<'t, 'm, T, D>
impl<'t, 'm, T, D> Unpin for OrtOwnedTensor<'t, 'm, T, D>where
D: Unpin,
impl<'t, 'm, T, D> UnwindSafe for OrtOwnedTensor<'t, 'm, T, D>where
D: UnwindSafe,
T: RefUnwindSafe,
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