---
title: "init(weights:biases:descriptor:)"
framework: ML Compute
role: symbol
role_heading: Initializer
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: "mlcompute/mlcfullyconnectedlayer/init(weights:biases:descriptor:)"
---

# init(weights:biases:descriptor:)

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

## Declaration

```swift
convenience init?(weights: MLCTensor, biases: MLCTensor?, descriptor: MLCConvolutionDescriptor)
```

## Parameters

- `weights`: The weights tensor.
- `biases`: The biases tensor.
- `descriptor`: An object you use to configure the fully connected layer.

## See Also

### Creating Fully Connected Layers

- [MLCConvolutionDescriptor](mlcompute/mlcconvolutiondescriptor.md)
