For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
selective_scan_fwd_cpu_minimal
selective_scan_fwd_cpu_minimal[kernel_dtype: DType, DSTATE: Int](batch: Int, dim: Int, seqlen: Int, group_size: Int, delta_softplus: Int8, output: TileTensor[kernel_dtype, address_space=output.address_space, linear_idx_type=output.linear_idx_type, element_size=output.element_size], x: TileTensor[kernel_dtype, address_space=x.address_space, linear_idx_type=x.linear_idx_type, element_size=x.element_size], u: TileTensor[kernel_dtype, address_space=u.address_space, linear_idx_type=u.linear_idx_type, element_size=u.element_size], delta: TileTensor[kernel_dtype, address_space=delta.address_space, linear_idx_type=delta.linear_idx_type, element_size=delta.element_size], A: TileTensor[kernel_dtype, address_space=A.address_space, linear_idx_type=A.linear_idx_type, element_size=A.element_size], B: TileTensor[kernel_dtype, address_space=B.address_space, linear_idx_type=B.linear_idx_type, element_size=B.element_size], C: TileTensor[kernel_dtype, address_space=C.address_space, linear_idx_type=C.linear_idx_type, element_size=C.element_size], output_strides: IndexList[3], x_strides: IndexList[4], u_strides: IndexList[3], delta_strides: IndexList[3], A_strides: IndexList[2], B_strides: IndexList[4], C_strides: IndexList[4], ctx: Optional[DeviceContext] = None)
Minimal CPU kernel for selective scan forward - no D, z, or delta_bias.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!