---
title: MPSNNNeuronDescriptor
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsnnneurondescriptor
---

# MPSNNNeuronDescriptor

An object that specifies properties used by a neuron kernel.

## Declaration

```swift
class MPSNNNeuronDescriptor
```

## Topics

### Instance Properties

- [a](metalperformanceshaders/mpsnnneurondescriptor/a.md)
- [b](metalperformanceshaders/mpsnnneurondescriptor/b.md)
- [c](metalperformanceshaders/mpsnnneurondescriptor/c.md)
- [data](metalperformanceshaders/mpsnnneurondescriptor/data.md)
- [neuronType](metalperformanceshaders/mpsnnneurondescriptor/neurontype.md)

### Type Methods

- [cnnNeuronDescriptor(with:)](metalperformanceshaders/mpsnnneurondescriptor/cnnneurondescriptor(with:).md)
- [cnnNeuronDescriptor(with:a:)](metalperformanceshaders/mpsnnneurondescriptor/cnnneurondescriptor(with:a:).md)
- [cnnNeuronDescriptor(with:a:b:)](metalperformanceshaders/mpsnnneurondescriptor/cnnneurondescriptor(with:a:b:).md)
- [cnnNeuronDescriptor(with:a:b:c:)](metalperformanceshaders/mpsnnneurondescriptor/cnnneurondescriptor(with:a:b:c:).md)
- [cnnNeuronPReLUDescriptor(with:noCopy:)](metalperformanceshaders/mpsnnneurondescriptor/cnnneuronpreludescriptor(with:nocopy:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Neuron Layers

- [MPSCNNNeuronAbsolute](metalperformanceshaders/mpscnnneuronabsolute.md)
- [MPSCNNNeuronELU](metalperformanceshaders/mpscnnneuronelu.md)
- [MPSCNNNeuronHardSigmoid](metalperformanceshaders/mpscnnneuronhardsigmoid.md)
- [MPSCNNNeuronLinear](metalperformanceshaders/mpscnnneuronlinear.md)
- [MPSCNNNeuronPReLU](metalperformanceshaders/mpscnnneuronprelu.md)
- [MPSCNNNeuronReLUN](metalperformanceshaders/mpscnnneuronrelun.md)
- [MPSCNNNeuronReLU](metalperformanceshaders/mpscnnneuronrelu.md)
- [MPSCNNNeuronSigmoid](metalperformanceshaders/mpscnnneuronsigmoid.md)
- [MPSCNNNeuronSoftPlus](metalperformanceshaders/mpscnnneuronsoftplus.md)
- [MPSCNNNeuronSoftSign](metalperformanceshaders/mpscnnneuronsoftsign.md)
- [MPSCNNNeuronTanH](metalperformanceshaders/mpscnnneurontanh.md)
- [MPSCNNNeuron](metalperformanceshaders/mpscnnneuron.md)
- [MPSCNNNeuronExponential](metalperformanceshaders/mpscnnneuronexponential.md)
- [MPSCNNNeuronGradient](metalperformanceshaders/mpscnnneurongradient.md)
- [MPSCNNNeuronLogarithm](metalperformanceshaders/mpscnnneuronlogarithm.md)
