<!--
{
  "availability" : [
    "iOS: 14.0.0 - 18.0.0",
    "iPadOS: 14.0.0 - 18.0.0",
    "macCatalyst: 14.0.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "tvOS: 14.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 7.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSLayerParametersLossSigmoidCrossEntropy",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@SA@BNNSLayerParametersLossSigmoidCrossEntropy"
  },
  "title" : "BNNSLayerParametersLossSigmoidCrossEntropy"
}
-->

# BNNSLayerParametersLossSigmoidCrossEntropy

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

```
struct BNNSLayerParametersLossSigmoidCrossEntropy
```

## Topics

### Initializers

[`init(function:i_desc:o_desc:reduction:label_smooth:)`](/documentation/Accelerate/BNNSLayerParametersLossSigmoidCrossEntropy/init(function:i_desc:o_desc:reduction:label_smooth:))

Returns a new sigmoid cross entropy loss layer parameters structure from the specified parameters.

[`init()`](/documentation/Accelerate/BNNSLayerParametersLossSigmoidCrossEntropy/init())

Returns a new sigmoid cross entropy loss layer parameters structure.

### Instance Properties

[`function`](/documentation/Accelerate/BNNSLayerParametersLossSigmoidCrossEntropy/function)

The function that’s used to compute loss.

[`i_desc`](/documentation/Accelerate/BNNSLayerParametersLossSigmoidCrossEntropy/i_desc)

The descriptor of the input.

[`o_desc`](/documentation/Accelerate/BNNSLayerParametersLossSigmoidCrossEntropy/o_desc)

The descriptor of the output.

[`reduction`](/documentation/Accelerate/BNNSLayerParametersLossSigmoidCrossEntropy/reduction)

The function that’s used to reduce the computed loss.

[`label_smooth`](/documentation/Accelerate/BNNSLayerParametersLossSigmoidCrossEntropy/label_smooth)

A value that defines the smoothing that the loss function applies to the labels.



---

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)