Enum acme_tensor::ops::ReshapeExpr
source · #[repr(u8)]pub enum ReshapeExpr<T> {
Broadcast {
scope: BoxTensor<T>,
shape: Shape,
},
Reshape {
scope: BoxTensor<T>,
shape: Shape,
},
Swap,
Transpose,
}Variants§
Trait Implementations§
source§impl<T: Clone> Clone for ReshapeExpr<T>
impl<T: Clone> Clone for ReshapeExpr<T>
source§fn clone(&self) -> ReshapeExpr<T>
fn clone(&self) -> ReshapeExpr<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Debug> Debug for ReshapeExpr<T>
impl<T: Debug> Debug for ReshapeExpr<T>
source§impl<'_enum, T> From<&'_enum ReshapeExpr<T>> for ReshapeOp
impl<'_enum, T> From<&'_enum ReshapeExpr<T>> for ReshapeOp
source§fn from(val: &'_enum ReshapeExpr<T>) -> ReshapeOp
fn from(val: &'_enum ReshapeExpr<T>) -> ReshapeOp
Converts to this type from the input type.
source§impl<T> From<ReshapeExpr<T>> for ReshapeOp
impl<T> From<ReshapeExpr<T>> for ReshapeOp
source§fn from(val: ReshapeExpr<T>) -> ReshapeOp
fn from(val: ReshapeExpr<T>) -> ReshapeOp
Converts to this type from the input type.
source§impl<T: Hash> Hash for ReshapeExpr<T>
impl<T: Hash> Hash for ReshapeExpr<T>
source§impl<T: PartialEq> PartialEq for ReshapeExpr<T>
impl<T: PartialEq> PartialEq for ReshapeExpr<T>
source§fn eq(&self, other: &ReshapeExpr<T>) -> bool
fn eq(&self, other: &ReshapeExpr<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T: Eq> Eq for ReshapeExpr<T>
impl<T> StructuralPartialEq for ReshapeExpr<T>
Auto Trait Implementations§
impl<T> Freeze for ReshapeExpr<T>
impl<T> RefUnwindSafe for ReshapeExpr<T>where
T: RefUnwindSafe,
impl<T> Send for ReshapeExpr<T>where
T: Send,
impl<T> Sync for ReshapeExpr<T>where
T: Sync,
impl<T> Unpin for ReshapeExpr<T>
impl<T> UnwindSafe for ReshapeExpr<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more