Skip to main content

Mojo function

set_scale_factor

set_scale_factor[scales_dtype: DType, scales_layout: Layout, //, SF_VECTOR_SIZE: Int, width: Int](scales_tensor: LayoutTensor[scales_dtype, scales_layout, scales_tensor.origin, address_space=scales_tensor.address_space, element_layout=scales_tensor.element_layout, layout_int_type=scales_tensor.layout_int_type, linear_idx_type=scales_tensor.linear_idx_type, masked=scales_tensor.masked, alignment=scales_tensor.alignment], row_idx: Int, col_idx: Int, scale_value: SIMD[scales_dtype, width])

set_scale_factor[scales_dtype: DType, width: Int, //, SF_VECTOR_SIZE: Int](scales_tensor: TileTensor[scales_dtype, scales_tensor.LayoutType, scales_tensor.origin, address_space=scales_tensor.address_space, linear_idx_type=scales_tensor.linear_idx_type, element_size=scales_tensor.element_size], row_idx: Int, col_idx: Int, scale_value: SIMD[scales_dtype, width])

Was this page helpful?