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
impl 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
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