---
title: "encode(with:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpscnnbatchnormalizationdatasource/encode(with:)"
---

# encode(with:)

## Declaration

```swift
optional func encode(with aCoder: NSCoder)
```
