Module kernel

Module kernel 

Source
Expand description

Kernel module

Modules§

attention
Attention kernels
conv
Convolution kernels
grid_sample
Grid sampling kernels
interpolate
Interpolation kernels
matmul
Matmul kernels
pool
Pooling kernels
prng
Pseudo-random number generator kernels
quantization
Quantization operations
reduce
Reduction algorithms

Enums§

MaskFillStrategy
Define how to run the mask fill kernel.
MaskWhereStrategy
Define how to run the mask where kernel.

Traits§

KernelMetadata
Implement this trait to create a kernel definition.

Functions§

bool_cast
Cast a bool tensor to the given element type.
cast
Cast a tensor to the given element type.
into_contiguous
Make a jit tensor contiguous.
into_contiguous_aligned
Make a jit tensor contiguous with an aligned last stride. Tensor is considered already contiguous if runtime can read it as is. This is equivalent in practice.
mask_fill
Execute the mask fill kernel with the given strategy.
mask_where
Execute the mask where kernel with the given strategy.
slice
Slice a jit tensor with a set of ranges
slice_with_steps
Slice a tensor with steps