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