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
slice_as_view
def slice_as_view[dtype: DType, start_type: DType, end_type: DType, step_type: DType](tensor: TileTensor[dtype, Storage=tensor.Storage, address_space=tensor.address_space, linear_idx_type=tensor.linear_idx_type, element_size=tensor.element_size], starts: TileTensor[start_type, Storage=starts.Storage, address_space=starts.address_space, linear_idx_type=starts.linear_idx_type, element_size=starts.element_size], ends: TileTensor[end_type, Storage=ends.Storage, address_space=ends.address_space, linear_idx_type=ends.linear_idx_type, element_size=ends.element_size], steps: TileTensor[step_type, Storage=steps.Storage, address_space=steps.address_space, linear_idx_type=steps.linear_idx_type, element_size=steps.element_size]) -> TileTensor[dtype, Layout[*?, *?], tensor.origin, address_space=tensor.address_space]
Returns:
TileTensor[dtype, Layout[*?, *?], tensor.origin, address_space=tensor.address_space]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!