[−][src]Struct tract_core::dim::TDim
Methods
impl TDim
[src]
pub fn is_one(&self) -> bool
[src]
pub fn s() -> TDim
[src]
pub fn stream() -> TDim
[src]
pub fn as_const(&self) -> Option<i32>
[src]
pub fn eval(&self, s: i32) -> Option<i32>
[src]
pub fn is_stream(&self) -> bool
[src]
pub fn to_integer(&self) -> TractResult<i32>
[src]
pub fn div_ceil(&self, other: TDim) -> TDim
[src]
Trait Implementations
impl Output for TDim
[src]
fn into_wrapped(source: TDim) -> Wrapped
[src]
fn from_wrapped(wrapped: Wrapped) -> TractResult<TDim>
[src]
fn wrap(self) -> Wrapped
[src]
Wraps self in the Wrapped type.
impl IntoExp<GenericFact<TDim>> for TDim
[src]
impl Datum for TDim
[src]
fn name() -> &'static str
[src]
fn datum_type() -> DatumType
[src]
fn packed_mat_mul(m: usize, k: usize, n: usize) -> Option<Box<dyn MatMul<Self>>>
[src]
impl DimLike for TDim
[src]
fn to_integer(&self) -> TractResult<i32>
[src]
fn div_ceil(&self, other: usize) -> Self
[src]
impl Copy for TDim
[src]
impl PartialEq<TDim> for TDim
[src]
impl Default for TDim
[src]
impl From<TDim> for Tensor
[src]
impl From<i64> for TDim
[src]
impl From<i32> for TDim
[src]
impl From<isize> for TDim
[src]
impl From<usize> for TDim
[src]
impl<'a> From<&'a usize> for TDim
[src]
impl Clone for TDim
[src]
fn clone(&self) -> TDim
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for TDim
[src]
impl Display for TDim
[src]
impl Debug for TDim
[src]
impl Sub<TDim> for TDim
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: TDim) -> Self
[src]
impl<I: AsPrimitive<i32>> Sub<I> for TDim
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: I) -> Self
[src]
impl Add<TDim> for TDim
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: TDim) -> Self
[src]
impl<I: AsPrimitive<i32>> Add<I> for TDim
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: I) -> Self
[src]
impl Mul<TDim> for TDim
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: TDim) -> Self
[src]
impl<I: AsPrimitive<i32>> Mul<I> for TDim
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: I) -> Self
[src]
impl Div<TDim> for TDim
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: TDim) -> TDim
[src]
impl<I: AsPrimitive<i32>> Div<I> for TDim
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: I) -> Self
[src]
impl Rem<TDim> for TDim
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: TDim) -> TDim
[src]
impl<I: AsPrimitive<i32>> Rem<I> for TDim
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: I) -> Self
[src]
impl Neg for TDim
[src]
impl AddAssign<TDim> for TDim
[src]
fn add_assign(&mut self, rhs: TDim)
[src]
impl SubAssign<TDim> for TDim
[src]
fn sub_assign(&mut self, rhs: TDim)
[src]
impl MulAssign<TDim> for TDim
[src]
fn mul_assign(&mut self, rhs: TDim)
[src]
impl DivAssign<TDim> for TDim
[src]
fn div_assign(&mut self, rhs: TDim)
[src]
impl RemAssign<TDim> for TDim
[src]
fn rem_assign(&mut self, rhs: TDim)
[src]
impl FromIterator<TDim> for ShapeFact
[src]
fn from_iter<I: IntoIterator<Item = TDim>>(iter: I) -> ShapeFact
[src]
Converts an iterator over usize into a closed shape.
impl Zero for TDim
[src]
impl One for TDim
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, E> IntoExp for E where
E: 'static + TExp<T>,
[src]
E: 'static + TExp<T>,
impl<I> ToDim for I where
I: Into<TDim>,
[src]
I: Into<TDim>,
impl<PB, Tract> ToTract for PB where
Tract: Tractify<PB>,
[src]
Tract: Tractify<PB>,
fn tractify(&Self) -> Result<Tract, TractError>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<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> LinalgScalar for T where
T: One<Output = T> + Add<T, Output = T> + Sub<T, Output = T> + 'static + Mul<T> + Copy + Div<T, Output = T> + Zero,
[src]
T: One<Output = T> + Add<T, Output = T> + Sub<T, Output = T> + 'static + Mul<T> + Copy + Div<T, Output = T> + Zero,
impl<T, Rhs, Output> NumOps for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T, Rhs> NumAssignOps for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,