[][src]Struct onnxruntime::tensor::TensorFromOrt

pub struct TensorFromOrt<'t, 'm, T, D> where
    T: TypeToTensorElementDataType + Debug,
    D: Dimension,
    'm: 't, 
{ /* fields omitted */ }

Tensor containing data owned by the 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.

TensorFromOrt implements the std::deref::Deref trait for ergonomic access to the underlying ndarray::ArrayView.

Trait Implementations

impl<'t, 'm, T: Debug, D: Debug> Debug for TensorFromOrt<'t, 'm, T, D> where
    T: TypeToTensorElementDataType + Debug,
    D: Dimension,
    'm: 't, 
[src]

impl<'t, 'm, T, D> Deref for TensorFromOrt<'t, 'm, T, D> where
    T: TypeToTensorElementDataType + Debug,
    D: Dimension
[src]

type Target = ArrayView<'t, T, D>

The resulting type after dereferencing.

impl<'t, 'm, T, D> Drop for TensorFromOrt<'t, 'm, T, D> where
    T: TypeToTensorElementDataType + Debug,
    D: Dimension,
    'm: 't, 
[src]

Auto Trait Implementations

impl<'t, 'm, T, D> RefUnwindSafe for TensorFromOrt<'t, 'm, T, D> where
    D: RefUnwindSafe,
    T: RefUnwindSafe

impl<'t, 'm, T, D> !Send for TensorFromOrt<'t, 'm, T, D>

impl<'t, 'm, T, D> !Sync for TensorFromOrt<'t, 'm, T, D>

impl<'t, 'm, T, D> Unpin for TensorFromOrt<'t, 'm, T, D> where
    D: Unpin

impl<'t, 'm, T, D> UnwindSafe for TensorFromOrt<'t, 'm, T, D> where
    D: UnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.