---
title: MPSCNNConvolutionWeightsAndBiasesState
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate
---

# MPSCNNConvolutionWeightsAndBiasesState

A class that stores weights and biases.

## Declaration

```swift
class MPSCNNConvolutionWeightsAndBiasesState
```

## Topics

### Initializers

- [init(device:cnnConvolutionDescriptor:)](metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/init(device:cnnconvolutiondescriptor:).md)
- [init(weights:biases:)](metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/init(weights:biases:).md)
- [init(weights:weightsOffset:biases:biasesOffset:cnnConvolutionDescriptor:)](metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/init(weights:weightsoffset:biases:biasesoffset:cnnconvolutiondescriptor:).md)

### Instance Properties

- [biases](metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/biases.md)
- [biasesOffset](metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/biasesoffset.md)
- [weights](metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/weights.md)
- [weightsOffset](metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/weightsoffset.md)

### Type Methods

- [temporaryCNNConvolutionWeightsAndBiasesState(with:cnnConvolutionDescriptor:)](metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/temporarycnnconvolutionweightsandbiasesstate(with:cnnconvolutiondescriptor:).md)

## Relationships

### Inherits From

- [MPSState](metalperformanceshaders/mpsstate.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

### Convolution Layers

- [MPSCNNBinaryConvolution](metalperformanceshaders/mpscnnbinaryconvolution.md)
- [MPSCNNConvolution](metalperformanceshaders/mpscnnconvolution.md)
- [MPSCNNDepthWiseConvolutionDescriptor](metalperformanceshaders/mpscnndepthwiseconvolutiondescriptor.md)
- [MPSCNNSubPixelConvolutionDescriptor](metalperformanceshaders/mpscnnsubpixelconvolutiondescriptor.md)
- [MPSCNNConvolutionTranspose](metalperformanceshaders/mpscnnconvolutiontranspose.md)
- [MPSCNNConvolutionGradient](metalperformanceshaders/mpscnnconvolutiongradient.md)
- [MPSCNNConvolutionGradientState](metalperformanceshaders/mpscnnconvolutiongradientstate.md)
- [MPSImageSizeEncodingState](metalperformanceshaders/mpsimagesizeencodingstate.md)
