pub enum TensorData {
F32(Vec<f32>),
F64(Vec<f64>),
I64(Vec<i64>),
Bool(Vec<bool>),
}Expand description
Contiguous numeric payload backing a Tensor.
Variants§
F32(Vec<f32>)
f32 elements.
F64(Vec<f64>)
f64 elements.
I64(Vec<i64>)
i64 elements.
Bool(Vec<bool>)
bool elements.
Implementations§
Trait Implementations§
Source§impl Clone for TensorData
impl Clone for TensorData
Source§fn clone(&self) -> TensorData
fn clone(&self) -> TensorData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TensorData
impl Debug for TensorData
Source§impl PartialEq for TensorData
impl PartialEq for TensorData
impl StructuralPartialEq for TensorData
Auto Trait Implementations§
impl Freeze for TensorData
impl RefUnwindSafe for TensorData
impl Send for TensorData
impl Sync for TensorData
impl Unpin for TensorData
impl UnsafeUnpin for TensorData
impl UnwindSafe for TensorData
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