Mojo package
nn
Provides neural network operators for deep learning models.
Packagesβ
- β
attention: Multi-head attention (MHA) and multi-head latent attention (MLA) kernels. - β
conv: Convolution kernels (1D, 2D, 3D, transposed).
Modulesβ
- β
activations: The module contains implementations of activation functions. - β
arange: - β
arg_nonzero: - β
argmaxmin: - β
argmaxmin_gpu: - β
argsort: - β
bicubic: This module provides CPU and GPU implementations for bicubic interpolation. - β
broadcast: - β
concat: - β
cumsum: - β
fold: Implements the fold operation. - β
fused_qk_rope: - β
gather_scatter: - β
gemv_partial_norm: Fused matvec (M=1) + partial RMS norm on B200. - β
image: - β
index_fp8: - β
index_tensor: - β
irfft: Inverse real FFT kernel using cuFFT. - β
kv_cache: - β
kv_cache_ragged: - β
learnable_2d_interp_pos_emb: Learnable 2D interpolated position embedding (Kimi K2.5 MoonViT3d). - β
moe: - β
nms: - β
normalization: - β
pad: - β
pad_gpu: - β
pool: - β
rand_normal: - β
rand_uniform: - β
randn: - β
repeat_interleave: - β
reshape: - β
resize: - β
roi_align: - β
rope: - β
rope_split_store: Fused rope + split + KV store kernel. - β
sampling: - β
shapes: - β
shard_and_stack: - β
slice: - β
softmax: - β
spatial_merge: - β
split: - β
tile: - β
topk: - β
topk_fi: - β
toppminp: - β
toppminp_gpu: - β
tpool_patch_merger:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!