Mojo function
copy_to_slice
copy_to_slice[dtype: DType, start_type: DType, end_type: DType, step_type: DType, target: StringSlice[StaticConstantOrigin] = StringSlice("cpu")](buffer: TileTensor[dtype, buffer.LayoutType, buffer.origin, address_space=buffer.address_space, linear_idx_type=buffer.linear_idx_type, element_size=buffer.element_size], in_slice: TileTensor[dtype, in_slice.LayoutType, in_slice.origin, address_space=in_slice.address_space, linear_idx_type=in_slice.linear_idx_type, element_size=in_slice.element_size], start: TileTensor[start_type, start.LayoutType, start.origin, address_space=start.address_space, linear_idx_type=start.linear_idx_type, element_size=start.element_size], end: TileTensor[end_type, end.LayoutType, end.origin, address_space=end.address_space, linear_idx_type=end.linear_idx_type, element_size=end.element_size], step: TileTensor[step_type, step.LayoutType, step.origin, address_space=step.address_space, linear_idx_type=step.linear_idx_type, element_size=step.element_size], context: DeviceContextPtr = DeviceContextPtr())
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!