pub struct Bfloat16Tensor {
pub shape: &'static [usize],
pub bits: &'static [u16],
}Expand description
One immutable bfloat16 tensor represented by exact storage bits.
Fields§
§shape: &'static [usize]Static row-major shape.
bits: &'static [u16]Row-major IEEE-754 bfloat16 element bits.
Trait Implementations§
Source§impl Clone for Bfloat16Tensor
impl Clone for Bfloat16Tensor
Source§fn clone(&self) -> Bfloat16Tensor
fn clone(&self) -> Bfloat16Tensor
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 Bfloat16Tensor
Source§impl Debug for Bfloat16Tensor
impl Debug for Bfloat16Tensor
impl Eq for Bfloat16Tensor
Source§impl PartialEq for Bfloat16Tensor
impl PartialEq for Bfloat16Tensor
Source§fn eq(&self, other: &Bfloat16Tensor) -> bool
fn eq(&self, other: &Bfloat16Tensor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Bfloat16Tensor
Auto Trait Implementations§
impl Freeze for Bfloat16Tensor
impl RefUnwindSafe for Bfloat16Tensor
impl Send for Bfloat16Tensor
impl Sync for Bfloat16Tensor
impl Unpin for Bfloat16Tensor
impl UnsafeUnpin for Bfloat16Tensor
impl UnwindSafe for Bfloat16Tensor
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