---
title: BNNSLayerParametersLossSoftmaxCrossEntropy
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/bnnslayerparameterslosssoftmaxcrossentropy
---

# BNNSLayerParametersLossSoftmaxCrossEntropy

A structure that contains the parameters of a softmax cross entropy loss layer.

## Declaration

```swift
struct BNNSLayerParametersLossSoftmaxCrossEntropy
```

## Topics

### Initializers

- [init(function:i_desc:o_desc:reduction:label_smooth:)](accelerate/bnnslayerparameterslosssoftmaxcrossentropy/init(function:i_desc:o_desc:reduction:label_smooth:).md)
- [init()](accelerate/bnnslayerparameterslosssoftmaxcrossentropy/init().md)

### Instance Properties

- [function](accelerate/bnnslayerparameterslosssoftmaxcrossentropy/function.md)
- [i_desc](accelerate/bnnslayerparameterslosssoftmaxcrossentropy/i_desc.md)
- [o_desc](accelerate/bnnslayerparameterslosssoftmaxcrossentropy/o_desc.md)
- [reduction](accelerate/bnnslayerparameterslosssoftmaxcrossentropy/reduction.md)
- [label_smooth](accelerate/bnnslayerparameterslosssoftmaxcrossentropy/label_smooth.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)

## See Also

### Loss layers

- [BNNS.LossLayer](accelerate/bnns/losslayer.md)
- [BNNSLossFunction](accelerate/bnnslossfunction.md)
- [BNNSLossReductionFunction](accelerate/bnnslossreductionfunction.md)
- [BNNSLayerParametersLossBase](accelerate/bnnslayerparameterslossbase.md)
- [BNNSLayerParametersLossHuber](accelerate/bnnslayerparameterslosshuber.md)
- [BNNSLayerParametersLossSigmoidCrossEntropy](accelerate/bnnslayerparameterslosssigmoidcrossentropy.md)
- [BNNSLayerParametersLossYolo](accelerate/bnnslayerparameterslossyolo.md)
- [BNNSFilterCreateLayerLoss(_:_:)](accelerate/bnnsfiltercreatelayerloss(_:_:).md)
- [BNNSLossFilterApplyBatch(_:_:_:_:_:_:_:_:_:_:_:)](accelerate/bnnslossfilterapplybatch(_:_:_:_:_:_:_:_:_:_:_:).md)
- [BNNSLossFilterApplyBackwardBatch(_:_:_:_:_:_:_:_:_:_:_:_:)](accelerate/bnnslossfilterapplybackwardbatch(_:_:_:_:_:_:_:_:_:_:_:_:).md)
