pub struct Tensor {
pub data_type: TensorDataType,
pub shape: Vec<i64>,
pub data: Vec<u8>,
}Expand description
A numeric tensor: an element data_type, a shape, and the
raw little-endian element bytes.
Fields§
§data_type: TensorDataTypeThe element data type.
shape: Vec<i64>The dimensions of the tensor.
data: Vec<u8>The raw element bytes, row-major, little-endian.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Tensor
Auto Trait Implementations§
impl Freeze for Tensor
impl RefUnwindSafe for Tensor
impl Send for Tensor
impl Sync for Tensor
impl Unpin for Tensor
impl UnsafeUnpin 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