pub enum WgpuKernelOp {
Show 15 variants
Add,
Sub,
Mul,
Div,
Sqrt,
Exp,
Sin,
Cos,
Sum,
Min,
Max,
Norm,
Transpose,
Dot,
Matmul,
}Expand description
Portable operation implemented by a wgpu tensor kernel.
Variants§
Add
Element-wise addition.
Sub
Element-wise subtraction.
Mul
Element-wise multiplication.
Div
Element-wise division.
Sqrt
Element-wise square root.
Exp
Element-wise exponential.
Sin
Element-wise sine.
Cos
Element-wise cosine.
Sum
Whole-tensor sum reduction.
Min
Whole-tensor minimum reduction.
Max
Whole-tensor maximum reduction.
Norm
Whole-tensor Euclidean norm.
Transpose
Matrix transpose.
Dot
Vector dot product.
Matmul
Vector or matrix multiplication.
Implementations§
Source§impl WgpuKernelOp
impl WgpuKernelOp
Sourcepub fn is_reduction(self) -> bool
pub fn is_reduction(self) -> bool
Returns true when the kernel performs fixed-tree accumulation.
Trait Implementations§
Source§impl Clone for WgpuKernelOp
impl Clone for WgpuKernelOp
Source§fn clone(&self) -> WgpuKernelOp
fn clone(&self) -> WgpuKernelOp
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 WgpuKernelOp
Source§impl Debug for WgpuKernelOp
impl Debug for WgpuKernelOp
impl Eq for WgpuKernelOp
Source§impl PartialEq for WgpuKernelOp
impl PartialEq for WgpuKernelOp
impl StructuralPartialEq for WgpuKernelOp
Auto Trait Implementations§
impl Freeze for WgpuKernelOp
impl RefUnwindSafe for WgpuKernelOp
impl Send for WgpuKernelOp
impl Sync for WgpuKernelOp
impl Unpin for WgpuKernelOp
impl UnsafeUnpin for WgpuKernelOp
impl UnwindSafe for WgpuKernelOp
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.