pub enum TensorDataMut<'a> {
}Expand description
Exclusively borrowed, contiguous tensor elements.
Variants§
F32(&'a mut [f32])
Mutable f32 elements.
F64(&'a mut [f64])
Mutable f64 elements.
F16(&'a mut [f16])
Mutable f16 elements.
BF16(&'a mut [bf16])
Mutable bf16 elements.
I64(&'a mut [i64])
Mutable i64 elements.
I32(&'a mut [i32])
Mutable i32 elements.
I16(&'a mut [i16])
Mutable i16 elements.
I8(&'a mut [i8])
Mutable i8 elements.
U64(&'a mut [u64])
Mutable u64 elements.
U32(&'a mut [u32])
Mutable u32 elements.
U16(&'a mut [u16])
Mutable u16 elements.
U8(&'a mut [u8])
Mutable u8 elements.
Bool(&'a mut [bool])
Mutable bool elements.
Implementations§
Source§impl TensorDataMut<'_>
impl TensorDataMut<'_>
Sourcepub fn copy_from(&mut self, source: TensorData<'_>) -> Result<()>
pub fn copy_from(&mut self, source: TensorData<'_>) -> Result<()>
Copy elements after checking that types and lengths match.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for TensorDataMut<'a>
impl<'a> Freeze for TensorDataMut<'a>
impl<'a> RefUnwindSafe for TensorDataMut<'a>
impl<'a> Send for TensorDataMut<'a>
impl<'a> Sync for TensorDataMut<'a>
impl<'a> Unpin for TensorDataMut<'a>
impl<'a> UnsafeUnpin for TensorDataMut<'a>
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