Struct tfdeploy::dim::TDim [−][src]
pub struct TDim(_);
Methods
impl TDim
[src]
impl TDim
pub fn is_one(&self) -> bool
[src]
pub fn is_one(&self) -> bool
pub fn s() -> TDim
[src]
pub fn s() -> TDim
pub fn stream() -> TDim
[src]
pub fn stream() -> TDim
pub fn as_const(&self) -> Option<isize>
[src]
pub fn as_const(&self) -> Option<isize>
pub fn reduce(&mut self)
[src]
pub fn reduce(&mut self)
pub fn eval(&self, s: isize) -> Option<isize>
[src]
pub fn eval(&self, s: isize) -> Option<isize>
pub fn is_stream(&self) -> bool
[src]
pub fn is_stream(&self) -> bool
pub fn to_integer(&self) -> Result<isize>
[src]
pub fn to_integer(&self) -> Result<isize>
pub fn div_ceil(&self, other: TDim) -> TDim
[src]
pub fn div_ceil(&self, other: TDim) -> TDim
Trait Implementations
impl FromIterator<TDim> for ShapeFact
[src]
impl FromIterator<TDim> for ShapeFact
fn from_iter<I: IntoIterator<Item = TDim>>(iter: I) -> ShapeFact
[src]
fn from_iter<I: IntoIterator<Item = TDim>>(iter: I) -> ShapeFact
Converts an iterator over usize into a closed shape.
impl IntoExp<DimFact> for TDim
[src]
impl IntoExp<DimFact> for TDim
impl Output for TDim
[src]
impl Output for TDim
fn into_wrapped(source: TDim) -> Wrapped
[src]
fn into_wrapped(source: TDim) -> Wrapped
Wraps the fact in the Wrapped type.
fn from_wrapped(wrapped: Wrapped) -> Result<TDim>
[src]
fn from_wrapped(wrapped: Wrapped) -> Result<TDim>
Retrieves the fact from the Wrapped type. Panics if wrapped doesn't have the right constructor. Read more
fn wrap(self) -> Wrapped
[src]
fn wrap(self) -> Wrapped
Wraps self in the Wrapped type.
impl IntoExpression<ConstantExpression<DimFact>> for TDim
[src]
impl IntoExpression<ConstantExpression<DimFact>> for TDim
Converts TDim to ConstantExpression.
fn into_expr(self) -> ConstantExpression<DimFact>
[src]
fn into_expr(self) -> ConstantExpression<DimFact>
Converts the value to an Expression.
impl Copy for TDim
[src]
impl Copy for TDim
impl Clone for TDim
[src]
impl Clone for TDim
fn clone(&self) -> TDim
[src]
fn clone(&self) -> TDim
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for TDim
[src]
impl PartialEq for TDim
fn eq(&self, other: &TDim) -> bool
[src]
fn eq(&self, other: &TDim) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TDim) -> bool
[src]
fn ne(&self, other: &TDim) -> bool
This method tests for !=
.
impl Eq for TDim
[src]
impl Eq for TDim
impl Default for TDim
[src]
impl Default for TDim
impl Debug for TDim
[src]
impl Debug for TDim
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Zero for TDim
[src]
impl Zero for TDim
fn zero() -> Self
[src]
fn zero() -> Self
Returns the additive identity element of Self
, 0
. Read more
fn is_zero(&self) -> bool
[src]
fn is_zero(&self) -> bool
Returns true
if self
is equal to the additive identity.
impl One for TDim
[src]
impl One for TDim
fn one() -> Self
[src]
fn one() -> Self
Returns the multiplicative identity element of Self
, 1
. Read more
fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
fn is_one(&self) -> bool where
Self: PartialEq<Self>,
Returns true
if self
is equal to the multiplicative identity. Read more
impl Neg for TDim
[src]
impl Neg for TDim
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self
[src]
fn neg(self) -> Self
Performs the unary -
operation.
impl Add<TDim> for TDim
[src]
impl Add<TDim> for TDim
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: TDim) -> Self
[src]
fn add(self, rhs: TDim) -> Self
Performs the +
operation.
impl AddAssign<TDim> for TDim
[src]
impl AddAssign<TDim> for TDim
fn add_assign(&mut self, rhs: TDim)
[src]
fn add_assign(&mut self, rhs: TDim)
Performs the +=
operation.
impl Sub<TDim> for TDim
[src]
impl Sub<TDim> for TDim
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: TDim) -> Self
[src]
fn sub(self, rhs: TDim) -> Self
Performs the -
operation.
impl SubAssign<TDim> for TDim
[src]
impl SubAssign<TDim> for TDim
fn sub_assign(&mut self, rhs: TDim)
[src]
fn sub_assign(&mut self, rhs: TDim)
Performs the -=
operation.
impl Mul<TDim> for TDim
[src]
impl Mul<TDim> for TDim
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: TDim) -> Self
[src]
fn mul(self, rhs: TDim) -> Self
Performs the *
operation.
impl MulAssign<TDim> for TDim
[src]
impl MulAssign<TDim> for TDim
fn mul_assign(&mut self, rhs: TDim)
[src]
fn mul_assign(&mut self, rhs: TDim)
Performs the *=
operation.
impl Div<TDim> for TDim
[src]
impl Div<TDim> for TDim
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: TDim) -> TDim
[src]
fn div(self, rhs: TDim) -> TDim
Performs the /
operation.
impl DivAssign<TDim> for TDim
[src]
impl DivAssign<TDim> for TDim
fn div_assign(&mut self, rhs: TDim)
[src]
fn div_assign(&mut self, rhs: TDim)
Performs the /=
operation.
impl Rem<TDim> for TDim
[src]
impl Rem<TDim> for TDim
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: TDim) -> TDim
[src]
fn rem(self, rhs: TDim) -> TDim
Performs the %
operation.
impl RemAssign<TDim> for TDim
[src]
impl RemAssign<TDim> for TDim
fn rem_assign(&mut self, rhs: TDim)
[src]
fn rem_assign(&mut self, rhs: TDim)
Performs the %=
operation.
impl<I: AsPrimitive<isize>> Add<I> for TDim
[src]
impl<I: AsPrimitive<isize>> Add<I> for TDim
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: I) -> Self
[src]
fn add(self, rhs: I) -> Self
Performs the +
operation.
impl<I: AsPrimitive<isize>> Sub<I> for TDim
[src]
impl<I: AsPrimitive<isize>> Sub<I> for TDim
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: I) -> Self
[src]
fn sub(self, rhs: I) -> Self
Performs the -
operation.
impl<I: AsPrimitive<isize>> Mul<I> for TDim
[src]
impl<I: AsPrimitive<isize>> Mul<I> for TDim
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: I) -> Self
[src]
fn mul(self, rhs: I) -> Self
Performs the *
operation.
impl<I: AsPrimitive<isize>> Div<I> for TDim
[src]
impl<I: AsPrimitive<isize>> Div<I> for TDim
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: I) -> Self
[src]
fn div(self, rhs: I) -> Self
Performs the /
operation.
impl<I: AsPrimitive<isize>> Rem<I> for TDim
[src]
impl<I: AsPrimitive<isize>> Rem<I> for TDim
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: I) -> Self
[src]
fn rem(self, rhs: I) -> Self
Performs the %
operation.
impl<I: AsPrimitive<isize>> From<I> for TDim
[src]
impl<I: AsPrimitive<isize>> From<I> for TDim
impl From<TDim> for Tensor
[src]
impl From<TDim> for Tensor
impl Datum for TDim
[src]
impl Datum for TDim
fn name() -> &'static str
[src]
fn name() -> &'static str
fn datum_type() -> DatumType
[src]
fn datum_type() -> DatumType
fn tensor_into_array(m: Tensor) -> Result<ArrayD<Self>>
[src]
fn tensor_into_array(m: Tensor) -> Result<ArrayD<Self>>
fn tensor_to_view(m: &Tensor) -> Result<ArrayViewD<Self>>
[src]
fn tensor_to_view(m: &Tensor) -> Result<ArrayViewD<Self>>
fn array_into_tensor(m: ArrayD<Self>) -> Tensor
[src]
fn array_into_tensor(m: ArrayD<Self>) -> Tensor
fn tensor_cast_to_array(m: &Tensor) -> Result<MaybeOwnedArray<TDim>>
[src]
fn tensor_cast_to_array(m: &Tensor) -> Result<MaybeOwnedArray<TDim>>