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 module
slice
Implements the ONNX Slice operator, selecting sub-tensors along specified axes with start, stop, and step.
Functionsβ
- β
copy_to_slice: Copiesin_sliceinto the slice ofbufferdefined bystart,end, andstep. - β
slice_as_copy: Copies a slice oftensorintooutputusing the given start, end, and step indices. - β
slice_as_view: Returns a view oftensorsliced along every dimension. - β
slice_dim_as_view: Returns a view oftensorsliced along a single dimension. - β
slice_shape: Computes the shape that results from slicinginput_bufwith the given start, stop, and step tensors. - β
sliced_add: Adds tensors a and b element-wise for rows < lora_end_idx, otherwise copies a.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!