pub enum ReshapeAnalysis {
IsContiguous,
HighlyPermuted,
Broadcasted,
Split,
SmallerRank,
NoChange,
}Expand description
The reshape kind.
Variants§
IsContiguous
Original tensor is contiguous, can update the strides.
HighlyPermuted
Original tensor is highly permuted, can’t update the strides.
Broadcasted
Only batch dimensions are added, can update the strides.
Split
Dimensions are only split, can update the strides.
SmallerRank
Original tensor is bigger than output shape.
NoChange
New shape is the same.
Implementations§
Trait Implementations§
Source§impl Debug for ReshapeAnalysis
impl Debug for ReshapeAnalysis
Source§impl PartialEq for ReshapeAnalysis
impl PartialEq for ReshapeAnalysis
impl StructuralPartialEq for ReshapeAnalysis
Auto Trait Implementations§
impl Freeze for ReshapeAnalysis
impl RefUnwindSafe for ReshapeAnalysis
impl Send for ReshapeAnalysis
impl Sync for ReshapeAnalysis
impl Unpin for ReshapeAnalysis
impl UnsafeUnpin for ReshapeAnalysis
impl UnwindSafe for ReshapeAnalysis
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