pub struct F16(/* private fields */);Expand description
IEEE 754 binary16 (half-precision) storage value for DType::F16.
F16 is a dense storage representation, not a host arithmetic type:
conversions are exact in the widening direction and round-to-nearest-even
when narrowing, matching the device FP16-storage contract. Host-side
arithmetic goes through f32.
PartialEq compares stored bits, not values; distinct NaN payloads do not
compare equal, which is the intended dense-storage equality.
Implementations§
Trait Implementations§
impl Copy for F16
Auto Trait Implementations§
impl Forget for F16
impl Freeze for F16
impl Move for F16
impl RefUnwindSafe for F16
impl Send for F16
impl Sync for F16
impl Unpin for F16
impl UnsafeUnpin for F16
impl UnwindSafe for F16
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