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

# MPSCNNBinaryConvolutionNode

A representation of a convolution kernel with binary weights and an input image using binary approximations.

```
class MPSCNNBinaryConvolutionNode
```

## Topics

### Initializers

[`-  initWithSource:weights:scaleValue:type:flags:`](/documentation/MetalPerformanceShaders/MPSCNNBinaryConvolutionNode/init(source:weights:scaleValue:type:flags:))

[`MPSCNNConvolutionDataSource`](/documentation/MetalPerformanceShaders/MPSCNNConvolutionDataSource)

The protocol that provides convolution filter weights and bias terms.

[`MPSCNNBinaryConvolutionType`](/documentation/MetalPerformanceShaders/MPSCNNBinaryConvolutionType)

Options that defines what operations are used to perform binary convolution.

[`MPSCNNBinaryConvolutionFlags`](/documentation/MetalPerformanceShaders/MPSCNNBinaryConvolutionFlags)

Options used to control binary convolution kernels.

[`-  initWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:`](/documentation/MetalPerformanceShaders/MPSCNNBinaryConvolutionNode/init(source:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:))

### Type Methods

[`+  nodeWithSource:weights:scaleValue:type:flags:`](/documentation/MetalPerformanceShaders/MPSCNNBinaryConvolutionNode/nodeWithSource:weights:scaleValue:type:flags:)

[`+  nodeWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:`](/documentation/MetalPerformanceShaders/MPSCNNBinaryConvolutionNode/nodeWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:)

## Relationships

### Inherited By

[`MPSCNNBinaryFullyConnectedNode`](/documentation/MetalPerformanceShaders/MPSCNNBinaryFullyConnectedNode)

### Inherits From

[`MPSCNNConvolutionNode`](/documentation/MetalPerformanceShaders/MPSCNNConvolutionNode)

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`MPSNNTrainableNode`](/documentation/MetalPerformanceShaders/MPSNNTrainableNode)

---

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)