[][src]Struct tract_hir::internal::Invariants

pub struct Invariants {
    pub axes: SmallVec<[AxisInfo; 4]>,
    // some fields omitted
}

Fields

axes: SmallVec<[AxisInfo; 4]>

Implementations

impl Invariants[src]

pub fn none() -> Invariants[src]

pub fn new_element_wise(
    model: &ModelImpl<TypedFact, Box<dyn TypedOp + 'static>>,
    node: &BaseNode<TypedFact, Box<dyn TypedOp + 'static>>
) -> Result<Invariants, TractError>
[src]

pub fn element_wise(&self) -> bool[src]

impl Invariants[src]

pub fn track_input_axis(&self, input: usize, axis: usize) -> Option<&AxisInfo>[src]

pub fn track_output_axis(&self, output: usize, axis: usize) -> Option<&AxisInfo>[src]

pub fn unary_track_axis_up(
    &self,
    axis: usize,
    only_disposable: bool
) -> Option<usize>
[src]

pub fn unary_track_axis_down(
    &self,
    axis: usize,
    only_disposable: bool
) -> Option<usize>
[src]

Trait Implementations

impl Clone for Invariants[src]

impl Debug for Invariants[src]

impl Default for Invariants[src]

impl From<SmallVec<[AxisInfo; 4]>> for Invariants[src]

impl FromIterator<AxisInfo> for Invariants[src]

Auto Trait Implementations

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: Send + Sync + Any

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.