Enum tract_nnef::deser::Value[][src]

pub enum Value {
    Tensor(Arc<Tensor>),
    Wire(OutletId),
    Array(Vec<Value>),
    Tuple(Vec<Value>),
    String(String),
    Bool(bool),
    Scalar(f32),
    Dim(TDim),
}

Variants

Tensor(Arc<Tensor>)
Wire(OutletId)
Array(Vec<Value>)
Tuple(Vec<Value>)
String(String)
Bool(bool)
Scalar(f32)
Dim(TDim)

Implementations

impl Value[src]

pub fn to<T>(&self, builder: &mut ModelBuilder<'_>) -> TractResult<T> where
    T: CoerceFrom<Value>, 
[src]

Trait Implementations

impl Clone for Value[src]

impl CoerceFrom<Value> for Value[src]

impl CoerceFrom<Value> for Arc<Tensor>[src]

impl<D: CoerceFrom<Value>> CoerceFrom<Value> for TVec<D>[src]

impl<D1, D2> CoerceFrom<Value> for (D1, D2) where
    D1: CoerceFrom<Value>,
    D2: CoerceFrom<Value>, 
[src]

impl<D1, D2, D3> CoerceFrom<Value> for (D1, D2, D3) where
    D1: CoerceFrom<Value>,
    D2: CoerceFrom<Value>,
    D3: CoerceFrom<Value>, 
[src]

impl<D1, D2, D3, D4> CoerceFrom<Value> for (D1, D2, D3, D4) where
    D1: CoerceFrom<Value>,
    D2: CoerceFrom<Value>,
    D3: CoerceFrom<Value>,
    D4: CoerceFrom<Value>, 
[src]

impl CoerceFrom<Value> for OutletId[src]

impl CoerceFrom<Value> for i64[src]

impl CoerceFrom<Value> for TDim[src]

impl CoerceFrom<Value> for String[src]

impl CoerceFrom<Value> for bool[src]

impl CoerceFrom<Value> for usize[src]

impl CoerceFrom<Value> for isize[src]

impl CoerceFrom<Value> for f32[src]

impl Debug for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> DynClone for T where
    T: Clone
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.