Skip to main content

Mojo function

matmul

matmul[*, transpose_b: Bool = False, b_packed: Bool = False, elementwise_lambda_fn: Optional[def[dtype: DType, width: Int, *, alignment: Int = 1](IndexList[2], SIMD[dtype, width]) capturing -> None] = None, saturated_vnni: Bool = False](c: TileTensor[c.dtype, c.LayoutType, c.origin, linear_idx_type=c.linear_idx_type, element_size=c.element_size], a: TileTensor[a.dtype, a.LayoutType, a.origin, linear_idx_type=a.linear_idx_type, element_size=a.element_size], b: TileTensor[b.dtype, b.LayoutType, b.origin, linear_idx_type=b.linear_idx_type, element_size=b.element_size], kernel_type_m: Int, num_threads: Int = -1)

TileTensor matmul dispatcher. Selects kernel type and delegates to _matmul_cpu_impl.

Was this page helpful?