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

# MPSCNNBinaryFullyConnected

A fully connected convolution layer with binary weights and optionally binarized input image.

```
class MPSCNNBinaryFullyConnected
```

## Topics

### Initializers

[`-  initWithCoder:device:`](/documentation/MetalPerformanceShaders/MPSCNNBinaryFullyConnected/init(coder:device:))

Initializes a fully connected convolution layer with binary weights.

[`-  initWithDevice:convolutionData:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:`](/documentation/MetalPerformanceShaders/MPSCNNBinaryFullyConnected/init(device:convolutionData:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:))

Initializes a fully connected convolution layer with binary weights.

[`-  initWithDevice:convolutionData:scaleValue:type:flags:`](/documentation/MetalPerformanceShaders/MPSCNNBinaryFullyConnected/init(device:convolutionData:scaleValue:type:flags:))

Initializes a fully connected convolution layer with binary weights.

[`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.

## Relationships

### Conforms To

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

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

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

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

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

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

[`NSCoding`](/documentation/Foundation/NSCoding)

### Inherits From

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

---

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)