pub struct Float16Tensor {
pub shape: &'static [usize],
pub bits: &'static [u16],
}Expand description
One immutable IEEE-754 binary16 tensor in a numerical acceptance case.
Elements are stored as their exact bit patterns so this stable-Rust crate does not require the
nightly-only primitive f16 feature.
Fields§
§shape: &'static [usize]Static row-major shape.
bits: &'static [u16]Row-major IEEE-754 binary16 element bits.
Trait Implementations§
Source§impl Clone for Float16Tensor
impl Clone for Float16Tensor
Source§fn clone(&self) -> Float16Tensor
fn clone(&self) -> Float16Tensor
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 Float16Tensor
Source§impl Debug for Float16Tensor
impl Debug for Float16Tensor
impl Eq for Float16Tensor
Source§impl PartialEq for Float16Tensor
impl PartialEq for Float16Tensor
Source§fn eq(&self, other: &Float16Tensor) -> bool
fn eq(&self, other: &Float16Tensor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Float16Tensor
Auto Trait Implementations§
impl Freeze for Float16Tensor
impl RefUnwindSafe for Float16Tensor
impl Send for Float16Tensor
impl Sync for Float16Tensor
impl Unpin for Float16Tensor
impl UnsafeUnpin for Float16Tensor
impl UnwindSafe for Float16Tensor
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