[−][src]Struct tract_core::model::NormalizedFact
Tensor information for Normalized models.
Constant value is not allowed, as all tensors in normalized forms are variables.
Fields
datum_type: DatumType
tensor element type
shape: ShapeFact
tensor shape
Methods
impl NormalizedFact
[src]
pub fn shape<T, S, E>(shape: S) -> TractResult<NormalizedFact> where
T: Datum,
S: TryInto<ShapeFact, Error = E>,
TractError: From<E>,
[src]
T: Datum,
S: TryInto<ShapeFact, Error = E>,
TractError: From<E>,
pub fn dt_shape<S, E>(
datum_type: DatumType,
shape: S
) -> TractResult<NormalizedFact> where
S: TryInto<ShapeFact, Error = E>,
TractError: From<E>,
[src]
datum_type: DatumType,
shape: S
) -> TractResult<NormalizedFact> where
S: TryInto<ShapeFact, Error = E>,
TractError: From<E>,
Trait Implementations
impl Clone for NormalizedFact
[src]
fn clone(&self) -> NormalizedFact
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NormalizedFact
[src]
impl Fact for NormalizedFact
[src]
fn to_typed_fact(&self) -> TractResult<TypedFact>
[src]
fn matches(&self, t: &Tensor) -> TractResult<bool>
[src]
impl<'a> From<&'a NormalizedFact> for TypedFact
[src]
fn from(fact: &NormalizedFact) -> TypedFact
[src]
impl<'t> From<&'t Tensor> for NormalizedFact
[src]
fn from(t: &'t Tensor) -> NormalizedFact
[src]
impl PartialEq<NormalizedFact> for NormalizedFact
[src]
fn eq(&self, other: &NormalizedFact) -> bool
[src]
fn ne(&self, other: &NormalizedFact) -> bool
[src]
impl StructuralPartialEq for NormalizedFact
[src]
impl<'a> TryFrom<&'a TypedFact> for NormalizedFact
[src]
type Error = TractError
The type returned in the event of a conversion error.
fn try_from(fact: &TypedFact) -> TractResult<NormalizedFact>
[src]
Auto Trait Implementations
impl RefUnwindSafe for NormalizedFact
impl Send for NormalizedFact
impl Sync for NormalizedFact
impl Unpin for NormalizedFact
impl UnwindSafe for NormalizedFact
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> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,