---
title: "init(from:)"
framework: createml
role: symbol
role_heading: Initializer
path: "createml/mlcheckpoint/init(from:)"
---

# init(from:)

Creates a new checkpoint by decoding from the decoder.

## Declaration

```swift
init(from decoder: any Decoder) throws
```

## Parameters

- `decoder`: The decoder to read data from.

## See Also

### Encoding and decoding a checkpoint

- [encode(to:)](createml/mlcheckpoint/encode(to:).md)
