<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLMultiArray/init(shape:dataType:strides:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core ML",
      "CoreML"
    ],
    "preciseIdentifier" : "s:So12MLMultiArrayC6CoreMLE5shape8dataType7stridesABSaySiG_So0ab4DataG0VAGtcfc"
  },
  "title" : "init(shape:dataType:strides:)"
}
-->

# init(shape:dataType:strides:)

Creates the object with specified strides.

```
convenience init(shape: [Int], dataType: MLMultiArrayDataType, strides: [Int])
```

## Parameters

`shape`

The shape

`dataType`

The data type

`strides`

The strides.

## Discussion

The contents of the object are left uninitialized; the client must initialize it.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)