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

# BNNSLayerParametersTensorContraction

A structure that contains the parameters of a tensor-contraction layer.

```
struct BNNSLayerParametersTensorContraction
```

## Topics

### Initializers

[`init(operation:alpha:beta:iA_desc:iB_desc:o_desc:)`](/documentation/Accelerate/BNNSLayerParametersTensorContraction/init(operation:alpha:beta:iA_desc:iB_desc:o_desc:))

Returns a new tensor-contraction parameters structure.

### Instance Properties

[`operation`](/documentation/Accelerate/BNNSLayerParametersTensorContraction/operation)

The string that describes the operation.

[`alpha`](/documentation/Accelerate/BNNSLayerParametersTensorContraction/alpha)

Scaling that the operation applies to the result.

[`beta`](/documentation/Accelerate/BNNSLayerParametersTensorContraction/beta)

A value, that must be either 0.0 or 1.0, you use to scale the existing output before the operation adds it to the result.

[`iA_desc`](/documentation/Accelerate/BNNSLayerParametersTensorContraction/iA_desc)

The descriptor of input matrix *A*.

[`iB_desc`](/documentation/Accelerate/BNNSLayerParametersTensorContraction/iB_desc)

The descriptor of input matrix *B*.

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

The descriptor of the output.



---

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)