pub struct PackedTensor {
pub shape: &'static [usize],
pub bytes: &'static [u8],
}Expand description
One immutable packed low-precision tensor.
Fields§
§shape: &'static [usize]Static row-major logical shape.
bytes: &'static [u8]Densely packed elements in TOSA byte order.
Trait Implementations§
Source§impl Clone for PackedTensor
impl Clone for PackedTensor
Source§fn clone(&self) -> PackedTensor
fn clone(&self) -> PackedTensor
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 moreimpl Copy for PackedTensor
Source§impl Debug for PackedTensor
impl Debug for PackedTensor
impl Eq for PackedTensor
Source§impl PartialEq for PackedTensor
impl PartialEq for PackedTensor
Source§fn eq(&self, other: &PackedTensor) -> bool
fn eq(&self, other: &PackedTensor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PackedTensor
Auto Trait Implementations§
impl Freeze for PackedTensor
impl RefUnwindSafe for PackedTensor
impl Send for PackedTensor
impl Sync for PackedTensor
impl Unpin for PackedTensor
impl UnsafeUnpin for PackedTensor
impl UnwindSafe for PackedTensor
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