pub enum CastDirection {
F16ToF32,
F32ToF16,
BF16ToF32,
F32ToBF16,
BF16ToF16,
F16ToBF16,
}Expand description
Cast direction for dtype conversion.
Variants§
F16ToF32
f16 -> f32
F32ToF16
f32 -> f16
BF16ToF32
bf16 -> f32
F32ToBF16
f32 -> bf16
BF16ToF16
bf16 -> f16 (via f32 intermediate inside the kernel)
F16ToBF16
f16 -> bf16 (via f32 intermediate inside the kernel)
Auto Trait Implementations§
impl Freeze for CastDirection
impl RefUnwindSafe for CastDirection
impl Send for CastDirection
impl Sync for CastDirection
impl Unpin for CastDirection
impl UnsafeUnpin for CastDirection
impl UnwindSafe for CastDirection
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