pub struct OrtTensor<'t, T, D>{ /* private fields */ }
Expand description
Owned tensor, backed by an ndarray::Array
This tensor bounds the ONNX Runtime to ndarray
; it is used to copy an
ndarray::Array
to the runtime’s memory.
NOTE: The type is not meant to be used directly, use an ndarray::Array
instead.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'t, T, D> Freeze for OrtTensor<'t, T, D>where
D: Freeze,
impl<'t, T, D> RefUnwindSafe for OrtTensor<'t, T, D>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<'t, T, D> !Send for OrtTensor<'t, T, D>
impl<'t, T, D> !Sync for OrtTensor<'t, T, D>
impl<'t, T, D> Unpin for OrtTensor<'t, T, D>where
D: Unpin,
impl<'t, T, D> UnwindSafe for OrtTensor<'t, 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