<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.4.0",
    "iPadOS: 14.0.0 - 17.4.0",
    "macCatalyst: 14.0.0 - 17.4.0",
    "macOS: 11.0.0 - 14.3.0",
    "tvOS: 14.0.0 - 17.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCFullyConnectedLayer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:objc(cs)MLCFullyConnectedLayer"
  },
  "title" : "MLCFullyConnectedLayer"
}
-->

# MLCFullyConnectedLayer

A layer that connects each input to each output within its layer.

```
class MLCFullyConnectedLayer
```

## Overview

This is also known as a dense layer.

## Topics

### Creating Fully Connected Layers

[`init(weights:biases:descriptor:)`](/documentation/MLCompute/MLCFullyConnectedLayer/init(weights:biases:descriptor:))

Creates a fully connected layer with the weights, biases, and convolution descriptor you specify.

[`MLCConvolutionDescriptor`](/documentation/MLCompute/MLCConvolutionDescriptor)

A configuration object you use to create a convolution or fully connected layer.

### Inspecting Fully Connected Layers

[`descriptor`](/documentation/MLCompute/MLCFullyConnectedLayer/descriptor)

The configuration object you use to create the fully connected layer.

[`weights`](/documentation/MLCompute/MLCFullyConnectedLayer/weights)

The weights tensor you use for the fully connected layer.

[`biases`](/documentation/MLCompute/MLCFullyConnectedLayer/biases)

The biases tensor you use for the fully connected layer.

[`biasesParameter`](/documentation/MLCompute/MLCFullyConnectedLayer/biasesParameter)

The biases tensor parameter you use for optimizer updates.

[`weightsParameter`](/documentation/MLCompute/MLCFullyConnectedLayer/weightsParameter)

The weights tensor parameter you use for optimizer updates.



---

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)