<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSCNNNeuron",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSCNNNeuron"
  },
  "title" : "MPSCNNNeuron"
}
-->

# MPSCNNNeuron

A filter that applies a neuron activation function.

```
class MPSCNNNeuron
```

## Overview

Do not use this class directly; use one of the [`MPSCNNNeuron`](/documentation/MetalPerformanceShaders/MPSCNNNeuron) subclasses instead.

## Topics

### Initializers

[`init(coder:device:)`](/documentation/MetalPerformanceShaders/MPSCNNNeuron/init(coder:device:))

[`init(device:neuronDescriptor:)`](/documentation/MetalPerformanceShaders/MPSCNNNeuron/init(device:neuronDescriptor:))



---

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)