Struct tract_pulse::internal::Invariants[]

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

Fields

axes: SmallVec<[AxisInfo; 4]>

Implementations

impl Invariants

pub fn none() -> Invariants

pub fn new_element_wise(
    model: &Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>,
    node: &Node<TypedFact, Box<dyn TypedOp + 'static, Global>>
) -> Result<Invariants, Error>

pub fn element_wise(&self) -> bool

impl Invariants

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

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

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

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

Trait Implementations

impl Clone for Invariants

impl Debug for Invariants

impl Default for Invariants

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

impl FromIterator<AxisInfo> for Invariants

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
[src]

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

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.