[−]Struct tract_tensorflow::prelude::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
Implementations
impl NormalizedFact
pub fn shape<T, S, E>(shape: S) -> Result<NormalizedFact, TractError> where
S: TryInto<ShapeFact, Error = E>,
T: Datum,
TractError: From<E>,
S: TryInto<ShapeFact, Error = E>,
T: Datum,
TractError: From<E>,
pub fn dt_shape<S, E>(
datum_type: DatumType,
shape: S
) -> Result<NormalizedFact, TractError> where
S: TryInto<ShapeFact, Error = E>,
TractError: From<E>,
datum_type: DatumType,
shape: S
) -> Result<NormalizedFact, TractError> where
S: TryInto<ShapeFact, Error = E>,
TractError: From<E>,
Trait Implementations
impl Clone for NormalizedFact
fn clone(&self) -> NormalizedFact
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NormalizedFact
impl DynHash for NormalizedFact
impl Fact for NormalizedFact
fn to_typed_fact(&self) -> Result<TypedFact, TractError>
fn same_as(&self, other: &(dyn Fact + 'static)) -> bool
fn matches(&self, t: &Tensor) -> Result<bool, TractError>
impl<'a> From<&'a NormalizedFact> for TypedFact
fn from(fact: &NormalizedFact) -> TypedFact
impl<'t> From<&'t Tensor> for NormalizedFact
fn from(t: &'t Tensor) -> NormalizedFact
impl Hash for NormalizedFact
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<NormalizedFact> for NormalizedFact
fn eq(&self, other: &NormalizedFact) -> bool
fn ne(&self, other: &NormalizedFact) -> bool
impl StructuralPartialEq for NormalizedFact
impl<'a> TryFrom<&'a TypedFact> for NormalizedFact
type Error = TractError
The type returned in the event of a conversion error.
fn try_from(fact: &TypedFact) -> Result<NormalizedFact, TractError>
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,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
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>,