[][src]Struct onnxruntime::tensor::ort_tensor::OrtTensor

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

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

impl<'t, T, D> OrtTensor<'t, T, D> where
    T: TypeToTensorElementDataType + Debug + Clone,
    D: Dimension
[src]

pub fn softmax(&self, axis: Axis) -> Array<T, D> where
    D: RemoveAxis,
    T: NdFloat + SubAssign + DivAssign
[src]

Apply a softmax on the specified axis

Trait Implementations

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

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

type Target = Array<T, D>

The resulting type after dereferencing.

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

Auto Trait Implementations

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

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> Instrument for T[src]

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

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.