#[non_exhaustive]pub enum OpFusionClass {
Pointwise,
Broadcast,
Gather,
Reduce,
Scan,
Gemm,
Conv,
Attention,
Opaque,
Effect,
}Expand description
Fusion taxonomy class declared by an operation schema.
Region formation uses the class to admit or reject an operation:
Opaque and Effect operations never enter a fusion region, while the
structural classes name the read/write pattern the region compiler
reasons about. Opaque is the default so an undeclared operation fails
closed rather than silently joining a region.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Pointwise
Element-local arithmetic with no cross-lane reads.
Broadcast
Element-local arithmetic with broadcast input expansion.
Gather
Indexed or layout reads (gather, index, reshape, transpose).
Reduce
Cross-element reduction (sum, mean, norm, softmax, argmax).
Scan
Ordered prefix accumulation.
Gemm
Dense matrix multiplication family.
Conv
Convolution or pooling stencil.
Attention
Attention-family kernel (SDPA, flash, causal variants).
Opaque
Internally fused composite that must not be decomposed or joined into a region (SSM cells, recurrent cells, cryptographic kernels).
Effect
Stateful or side-effecting operation (RNG cursors, environment steps, parameter update kernels) excluded from region formation.