pub enum WgpuKernelDType {
F32,
F16Native,
Bf16WidenedToF32,
}Expand description
Dtype strategy selected for a portable kernel.
Variants§
F32
Native f32 arithmetic.
F16Native
Native f16 arithmetic, only when the adapter granted shader f16.
Bf16WidenedToF32
bf16/unsupported half inputs widened to f32 arithmetic.
Trait Implementations§
Source§impl Clone for WgpuKernelDType
impl Clone for WgpuKernelDType
Source§fn clone(&self) -> WgpuKernelDType
fn clone(&self) -> WgpuKernelDType
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 WgpuKernelDType
Source§impl Debug for WgpuKernelDType
impl Debug for WgpuKernelDType
impl Eq for WgpuKernelDType
Source§impl PartialEq for WgpuKernelDType
impl PartialEq for WgpuKernelDType
impl StructuralPartialEq for WgpuKernelDType
Auto Trait Implementations§
impl Freeze for WgpuKernelDType
impl RefUnwindSafe for WgpuKernelDType
impl Send for WgpuKernelDType
impl Sync for WgpuKernelDType
impl Unpin for WgpuKernelDType
impl UnsafeUnpin for WgpuKernelDType
impl UnwindSafe for WgpuKernelDType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.