Mojo function
rope_ragged
rope_ragged[dtype: DType, freq_dtype: DType, *, interleaved: Bool, target: StringSlice[StaticConstantOrigin], output_fn: fn[width: Int, alignment: Int](idx: IndexList[3], val: SIMD[dtype, width]) capturing -> None, mrope_types: Variadic[CoordLike] = , mrope_section: Optional[Coord[mrope_types]] = None](x: TileTensor[dtype, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types], input_row_offsets: TileTensor[DType.uint32, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types], start_pos: TileTensor[DType.uint32, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types], freqs_cis: TileTensor[freq_dtype, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types], context: Optional[DeviceContext], position_ids: OptionalReg[TileTensor[DType.uint32, Layout[RuntimeInt[DType.int64], RuntimeInt[DType.int64], RuntimeInt[DType.int64], ComptimeInt[1]], MutAnyOrigin]] = None)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!