---
title: "init(device:a:)"
framework: metalperformanceshaders
role: symbol
role_heading: Initializer
path: "metalperformanceshaders/mpscnnneuronrelu/init(device:a:)"
---

# init(device:a:)

Initializes a ReLU neuron filter.

## Declaration

```swift
init(device: any MTLDevice, a: Float)
```

## Parameters

- `device`: The device the filter will run on.
- `a`: The “a” variable of the filter function.

## Return Value

Return Value A valid MPSCNNNeuronReLU object or nil, if failure.
