IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo function

copy_to_slice

def copy_to_slice[dtype: DType, start_type: DType, end_type: DType, step_type: DType, target: StringSlice[StaticConstantOrigin] = StringSlice("cpu")](buffer: TileTensor[dtype, Storage=buffer.Storage, address_space=buffer.address_space, linear_idx_type=buffer.linear_idx_type, element_size=buffer.element_size], in_slice: TileTensor[dtype, Storage=in_slice.Storage, address_space=in_slice.address_space, linear_idx_type=in_slice.linear_idx_type, element_size=in_slice.element_size], start: TileTensor[start_type, Storage=start.Storage, address_space=start.address_space, linear_idx_type=start.linear_idx_type, element_size=start.element_size], end: TileTensor[end_type, Storage=end.Storage, address_space=end.address_space, linear_idx_type=end.linear_idx_type, element_size=end.element_size], step: TileTensor[step_type, Storage=step.Storage, address_space=step.address_space, linear_idx_type=step.linear_idx_type, element_size=step.element_size], context: DeviceContext)