<!--
{
  "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/BNNSLayerParametersLossBase",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@SA@BNNSLayerParametersLossBase"
  },
  "title" : "BNNSLayerParametersLossBase"
}
-->

# BNNSLayerParametersLossBase

A structure that contains the parameters of a loss layer.

```
struct BNNSLayerParametersLossBase
```

## Topics

### Initializers

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

Returns a new loss layer parameters structure from the specified parameters.

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

Returns a new loss layer parameters structure.

### Instance Properties

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

The function that’s used to compute loss.

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

The descriptor of the input.

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

The descriptor of the output.

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

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



---

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)