---
title: "init(bytesNoCopy:shape:deallocator:)"
framework: coreml
role: symbol
role_heading: Initializer
path: "coreml/mlshapedarrayprotocol/init(bytesnocopy:shape:deallocator:)"
---

# init(bytesNoCopy:shape:deallocator:)

Creates a shaped array type from a data pointer.

## Declaration

```swift
init(bytesNoCopy bytes: UnsafeRawPointer, shape: [Int], deallocator: Data.Deallocator)
```

## Parameters

- `bytes`: An unsafe raw pointer to the data.
- `shape`: An integer array. Each element represents the size of the shaped array’s corresponding dimension.
- `deallocator`: A doc://com.apple.documentation/documentation/Foundation/Data/Deallocator.

## See Also

### Creating a shaped array type

- [init(scalars:shape:)](coreml/mlshapedarrayprotocol/init(scalars:shape:).md)
- [init(repeating:shape:)](coreml/mlshapedarrayprotocol/init(repeating:shape:).md)
- [init(identityMatrixOfSize:)](coreml/mlshapedarrayprotocol/init(identitymatrixofsize:).md)
- [init(randomScalarsIn:shape:)](coreml/mlshapedarrayprotocol/init(randomscalarsin:shape:).md)
- [init(bytesNoCopy:shape:strides:deallocator:)](coreml/mlshapedarrayprotocol/init(bytesnocopy:shape:strides:deallocator:).md)
- [init(unsafeUninitializedShape:initializingWith:)](coreml/mlshapedarrayprotocol/init(unsafeuninitializedshape:initializingwith:).md)
