[−][src]Struct onnxruntime::tensor::ort_tensor::OrtTensor
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]
T: TypeToTensorElementDataType + Debug + Clone,
D: Dimension,
pub fn softmax(&self, axis: Axis) -> Array<T, D> where
D: RemoveAxis,
T: NdFloat + SubAssign + DivAssign,
[src]
D: RemoveAxis,
T: NdFloat + SubAssign + DivAssign,
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]
T: TypeToTensorElementDataType + Debug + Clone,
D: Dimension,
impl<'t, T, D> Deref for OrtTensor<'t, T, D> where
T: TypeToTensorElementDataType + Debug + Clone,
D: Dimension,
[src]
T: TypeToTensorElementDataType + Debug + Clone,
D: Dimension,
type Target = Array<T, D>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<'t, T, D> Drop for OrtTensor<'t, T, D> where
T: TypeToTensorElementDataType + Debug + Clone,
D: Dimension,
[src]
T: TypeToTensorElementDataType + Debug + Clone,
D: Dimension,
Auto Trait Implementations
impl<'t, T, D> RefUnwindSafe for OrtTensor<'t, T, D> where
D: RefUnwindSafe,
T: RefUnwindSafe,
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,
D: Unpin,
impl<'t, T, D> UnwindSafe for OrtTensor<'t, T, D> where
D: UnwindSafe,
T: RefUnwindSafe,
D: UnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,