pub enum DestMode {
Overwrite,
Accumulate,
Scaled,
}Expand description
Which Dest variant a destination is, without its target.
The operation registry uses this to declare the accepted modes.
§Examples
use tenferro_tensor::{Dest, DestMode, Tensor};
let mut t = Tensor::from_vec_col_major(vec![1], vec![0.0_f64])?;
let dest: Dest<tenferro_tensor::TensorWrite<'_>> = Dest::accumulate(&mut t);
assert_eq!(dest.mode(), DestMode::Accumulate);Variants§
Trait Implementations§
impl Copy for DestMode
impl Eq for DestMode
impl StructuralPartialEq for DestMode
Auto Trait Implementations§
impl Freeze for DestMode
impl RefUnwindSafe for DestMode
impl Send for DestMode
impl Sync for DestMode
impl Unpin for DestMode
impl UnsafeUnpin for DestMode
impl UnwindSafe for DestMode
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