pub enum ReshapeAction {
UpdateStrides {
strides: Vec<usize>,
},
Recompute,
NoChange,
}Expand description
The action to take for a reshape operation.
Variants§
UpdateStrides
Updating the strides is sufficient to handle the reshape.
Recompute
The strides are not compatible, we should recompute the buffer.
NoChange
The strides are already correct.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReshapeAction
impl RefUnwindSafe for ReshapeAction
impl Send for ReshapeAction
impl Sync for ReshapeAction
impl Unpin for ReshapeAction
impl UnwindSafe for ReshapeAction
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