Mojo function
slice_dim_as_view
slice_dim_as_view[dtype: DType, dim: Int](tensor: TileTensor[dtype, tensor.LayoutType, tensor.origin, address_space=tensor.address_space, linear_idx_type=tensor.linear_idx_type, element_size=tensor.element_size], start: Int, end: Int, step: Int) -> TileTensor[dtype, Layout[#kgen.variadic.tabulate(TileTensor[dtype, tensor.LayoutType, tensor.origin, address_space=tensor.address_space, linear_idx_type=tensor.linear_idx_type, element_size=tensor.element_size].rank, [idx: __mlir_type.index] RuntimeInt[DType.int64]), #kgen.variadic.tabulate(TileTensor[dtype, tensor.LayoutType, tensor.origin, address_space=tensor.address_space, linear_idx_type=tensor.linear_idx_type, element_size=tensor.element_size].rank, [idx: __mlir_type.index] RuntimeInt[DType.int64])], tensor.origin, address_space=tensor.address_space]
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!