---
title: "init(start:end:stride:)"
framework: ML Compute
role: symbol
role_heading: Initializer
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: "mlcompute/mlcslicelayer/init(start:end:stride:)"
---

# init(start:end:stride:)

Creates a slice layer with the start, end, and stride you specify.

## Declaration

```swift
convenience init?(start: [Int], end: [Int], stride: [Int]?)
```

## Parameters

- `start`: The start vector.
- `end`: The end vector.
- `stride`: The stride vector.
