pub struct Tensor {
pub name: String,
pub dtype: DType,
pub shape: Vec<u32>,
pub data: Vec<u8>,
}Expand description
A tensor with shape and data.
Fields§
§name: StringTensor name
dtype: DTypeData type
shape: Vec<u32>Shape dimensions
data: Vec<u8>Raw data bytes
Implementations§
Source§impl Tensor
impl Tensor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tensor
impl RefUnwindSafe for Tensor
impl Send for Tensor
impl Sync for Tensor
impl Unpin for Tensor
impl UnwindSafe for Tensor
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