Mojo function
block_scaled_matmul
block_scaled_matmul[c_type: DType, a_type: DType, b_type: DType, scales_dtype: DType, //, *, SF_VECTOR_SIZE: Int, transpose_b: Bool = True, transpose_a: Bool = False, elementwise_lambda_fn: Optional[def[dtype: DType, width: Int, *, alignment: Int = 1](IndexList[2], SIMD[dtype, width]) capturing -> None] = None, pdl_level: PDLLevel = PDLLevel(), _trace_description: StringSlice[StaticConstantOrigin] = StringSlice(""), target: StringSlice[StaticConstantOrigin] = StringSlice("cpu")](c_device: TileTensor[c_type, c_device.LayoutType, c_device.origin, linear_idx_type=c_device.linear_idx_type, element_size=c_device.element_size], a_device: TileTensor[a_type, a_device.LayoutType, a_device.origin, linear_idx_type=a_device.linear_idx_type, element_size=a_device.element_size], b_device: TileTensor[b_type, b_device.LayoutType, b_device.origin, linear_idx_type=b_device.linear_idx_type, element_size=b_device.element_size], a_scales_device: TileTensor[scales_dtype, a_scales_device.LayoutType, a_scales_device.origin, linear_idx_type=a_scales_device.linear_idx_type, element_size=a_scales_device.element_size], b_scales_device: TileTensor[scales_dtype, b_scales_device.LayoutType, b_scales_device.origin, linear_idx_type=b_scales_device.linear_idx_type, element_size=b_scales_device.element_size], tensor_sf: Float32, ctx: DeviceContext)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!