[−]Enum tract_tensorflow::prelude::TDim
Variants
Sym(char)
Val(i32)
Implementations
impl TDim
pub fn is_one(&self) -> bool
pub fn s() -> TDim
The special value S, for streaming.
pub fn stream() -> TDim
The special value S, for streaming.
pub fn as_const(&self) -> Option<i32>
Try to convert the value to an integer, if it does not contains S.
pub fn is_stream(&self) -> bool
pub fn to_integer(&self) -> Result<i32, TractError>
pub fn eval(&self, s: i32) -> Option<i32>
pub fn reduce(self) -> TDim
pub fn simplify(self) -> TDim
pub fn div_ceil(self, rhs: u32) -> TDim
Trait Implementations
impl<'a> Add<&'a TDim> for TDim
type Output = TDim
The resulting type after applying the +
operator.
fn add(self, rhs: &'a TDim) -> TDim
impl<I> Add<I> for TDim where
I: Into<TDim>,
I: Into<TDim>,
impl<'a> AddAssign<&'a TDim> for TDim
fn add_assign(&mut self, rhs: &'a TDim)
impl<I> AddAssign<I> for TDim where
I: Into<TDim>,
I: Into<TDim>,
fn add_assign(&mut self, rhs: I)
impl ArrayDatum for TDim
unsafe fn stack_tensors(
axis: usize,
tensors: &[impl Borrow<Tensor>]
) -> Result<Tensor, TractError>
axis: usize,
tensors: &[impl Borrow<Tensor>]
) -> Result<Tensor, TractError>
unsafe fn stack_views(
axis: usize,
views: &[ArrayBase<ViewRepr<&TDim>, Dim<IxDynImpl>>]
) -> Result<ArrayBase<OwnedRepr<TDim>, Dim<IxDynImpl>>, TractError>
axis: usize,
views: &[ArrayBase<ViewRepr<&TDim>, Dim<IxDynImpl>>]
) -> Result<ArrayBase<OwnedRepr<TDim>, Dim<IxDynImpl>>, TractError>
unsafe fn uninitialized_array<S, D, Sh>(shape: Sh) -> ArrayBase<S, D> where
D: Dimension,
S: DataOwned<Elem = TDim>,
Sh: ShapeBuilder<Dim = D>,
D: Dimension,
S: DataOwned<Elem = TDim>,
Sh: ShapeBuilder<Dim = D>,
impl Clone for TDim
fn clone(&self) -> TDim
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Datum for TDim
fn name() -> &'static str
fn datum_type() -> DatumType
impl Debug for TDim
impl Default for TDim
impl DimLike for TDim
fn maybe_mul(&self, other: &TDim) -> Result<TDim, TractError>
fn to_integer(&self) -> Result<i32, TractError>
fn one() -> TDim
fn div_ceil(&self, other: usize) -> Self
impl Display for TDim
impl<I> Div<I> for TDim where
I: AsPrimitive<u32>,
I: AsPrimitive<u32>,
impl<I> DivAssign<I> for TDim where
I: AsPrimitive<u32>,
I: AsPrimitive<u32>,
fn div_assign(&mut self, rhs: I)
impl Eq for TDim
impl<'a> From<&'a i32> for TDim
impl<'a> From<&'a i64> for TDim
impl<'a> From<&'a isize> for TDim
impl<'a> From<&'a usize> for TDim
impl From<TDim> for Tensor
impl From<i32> for TDim
impl From<i64> for TDim
impl From<isize> for TDim
impl From<usize> for TDim
impl FromIterator<TDim> for ShapeFactoid
[src]
fn from_iter<I>(iter: I) -> ShapeFactoid where
I: IntoIterator<Item = TDim>,
[src]
I: IntoIterator<Item = TDim>,
Converts an iterator over usize into a closed shape.
impl FromStr for TDim
type Err = ParseIntError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<TDim, <TDim as FromStr>::Err>
impl Hash for TDim
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<'_> IntoExp<GenericFactoid<TDim>> for &'_ TDim
[src]
fn bex(self) -> Exp<GenericFactoid<TDim>>
[src]
impl IntoExp<GenericFactoid<TDim>> for TDim
[src]
fn bex(self) -> Exp<GenericFactoid<TDim>>
[src]
impl<I> Mul<I> for TDim where
I: AsPrimitive<i32>,
I: AsPrimitive<i32>,
impl MulAssign<i32> for TDim
fn mul_assign(&mut self, rhs: i32)
impl Neg for TDim
impl Ord for TDim
fn cmp(&self, other: &TDim) -> Ordering
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl Output for TDim
[src]
fn into_wrapped(source: TDim) -> Wrapped
[src]
fn from_wrapped(wrapped: Wrapped) -> Result<TDim, TractError>
[src]
fn wrap(self) -> Wrapped
[src]
impl PartialEq<TDim> for TDim
impl PartialOrd<TDim> for TDim
fn partial_cmp(&self, other: &TDim) -> Option<Ordering>
fn lt(&self, other: &TDim) -> bool
fn le(&self, other: &TDim) -> bool
fn gt(&self, other: &TDim) -> bool
fn ge(&self, other: &TDim) -> bool
impl<I> Rem<I> for TDim where
I: AsPrimitive<u32>,
I: AsPrimitive<u32>,
impl<I> RemAssign<I> for TDim where
I: AsPrimitive<u32>,
I: AsPrimitive<u32>,
fn rem_assign(&mut self, rhs: I)
impl SloppyHash for TDim
fn sloppy_hash<S>(&self, state: &mut S) where
S: Hasher,
S: Hasher,
impl StructuralEq for TDim
impl StructuralPartialEq for TDim
impl<'a> Sub<&'a TDim> for TDim
type Output = TDim
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a TDim) -> TDim
impl<I> Sub<I> for TDim where
I: Into<TDim>,
I: Into<TDim>,
impl<'a> SubAssign<&'a TDim> for TDim
fn sub_assign(&mut self, rhs: &'a TDim)
impl<I> SubAssign<I> for TDim where
I: Into<TDim>,
I: Into<TDim>,
fn sub_assign(&mut self, rhs: I)
impl Sum<TDim> for TDim
impl Zero for TDim
Auto Trait Implementations
impl RefUnwindSafe for TDim
impl Send for TDim
impl Sync for TDim
impl Unpin for TDim
impl UnwindSafe for TDim
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, E> IntoExp<T> for E where
E: 'static + TExp<T>,
[src]
E: 'static + TExp<T>,
impl<T, Rhs> NumAssignOps<Rhs> 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, Rhs, Output> NumOps<Rhs, Output> 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<I> ToDim for I where
I: Into<TDim>,
I: Into<TDim>,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,