<!--
{
  "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/MPSCNNNeuronAbsolute",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSCNNNeuronAbsolute"
  },
  "title" : "MPSCNNNeuronAbsolute"
}
-->

# MPSCNNNeuronAbsolute

An absolute neuron filter.

```
class MPSCNNNeuronAbsolute
```

## Overview

For each pixel in an image, the filter applies the following function:

![f(x) = | x |](images/com.apple.metalperformanceshaders/media-2903538@2x.png)

## Topics

### Initializers

[`init(device:)`](/documentation/MetalPerformanceShaders/MPSCNNNeuronAbsolute/init(device:))

Initializes an absolute neuron filter.



---

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)