---
title: MPSNNArithmeticGradientNode
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsnnarithmeticgradientnode
---

# MPSNNArithmeticGradientNode

A representation of the base class for gradient arithmetic operators.

## Declaration

```swift
class MPSNNArithmeticGradientNode
```

## Topics

### Initializers

- [init(gradientImages:forwardFilter:isSecondarySourceFilter:)](metalperformanceshaders/mpsnnarithmeticgradientnode/init(gradientimages:forwardfilter:issecondarysourcefilter:).md)
- [init(sourceGradient:sourceImage:gradientState:isSecondarySourceFilter:)](metalperformanceshaders/mpsnnarithmeticgradientnode/init(sourcegradient:sourceimage:gradientstate:issecondarysourcefilter:).md)

### Instance Properties

- [bias](metalperformanceshaders/mpsnnarithmeticgradientnode/bias.md)
- [isSecondarySourceFilter](metalperformanceshaders/mpsnnarithmeticgradientnode/issecondarysourcefilter.md)
- [maximumValue](metalperformanceshaders/mpsnnarithmeticgradientnode/maximumvalue.md)
- [minimumValue](metalperformanceshaders/mpsnnarithmeticgradientnode/minimumvalue.md)
- [primaryScale](metalperformanceshaders/mpsnnarithmeticgradientnode/primaryscale.md)
- [secondaryScale](metalperformanceshaders/mpsnnarithmeticgradientnode/secondaryscale.md)
- [secondaryStrideInFeatureChannels](metalperformanceshaders/mpsnnarithmeticgradientnode/secondarystrideinfeaturechannels.md)
- [secondaryStrideInPixelsX](metalperformanceshaders/mpsnnarithmeticgradientnode/secondarystrideinpixelsx.md)
- [secondaryStrideInPixelsY](metalperformanceshaders/mpsnnarithmeticgradientnode/secondarystrideinpixelsy.md)

## Relationships

### Inherits From

- [MPSNNGradientFilterNode](metalperformanceshaders/mpsnngradientfilternode.md)

### Inherited By

- [MPSNNAdditionGradientNode](metalperformanceshaders/mpsnnadditiongradientnode.md)
- [MPSNNMultiplicationGradientNode](metalperformanceshaders/mpsnnmultiplicationgradientnode.md)
- [MPSNNSubtractionGradientNode](metalperformanceshaders/mpsnnsubtractiongradientnode.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Arithmetic Layer Nodes

- [MPSNNAdditionNode](metalperformanceshaders/mpsnnadditionnode.md)
- [MPSNNAdditionGradientNode](metalperformanceshaders/mpsnnadditiongradientnode.md)
- [MPSNNSubtractionNode](metalperformanceshaders/mpsnnsubtractionnode.md)
- [MPSNNSubtractionGradientNode](metalperformanceshaders/mpsnnsubtractiongradientnode.md)
- [MPSNNMultiplicationNode](metalperformanceshaders/mpsnnmultiplicationnode.md)
- [MPSNNMultiplicationGradientNode](metalperformanceshaders/mpsnnmultiplicationgradientnode.md)
- [MPSNNDivisionNode](metalperformanceshaders/mpsnndivisionnode.md)
- [MPSNNBinaryArithmeticNode](metalperformanceshaders/mpsnnbinaryarithmeticnode.md)
- [MPSNNArithmeticGradientStateNode](metalperformanceshaders/mpsnnarithmeticgradientstatenode.md)
