Skip to main content

Mojo function

slice_dim_as_view

slice_dim_as_view[dtype: DType, dim: Int](tensor: LayoutTensor[dtype, layout, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], start: Int, end: Int, step: Int) -> LayoutTensor[dtype, row_major[::Int](), origin, address_space=address_space]

Returns:

LayoutTensor

Was this page helpful?