<!--
{
  "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/init(operation:alpha:beta:iA_desc:iB_desc:o_desc:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So36BNNSLayerParametersTensorContractiona9operation5alpha4beta7iA_desc03iB_H002o_H0ABSPys4Int8VG_S2fSo21BNNSNDArrayDescriptoraA2Mtcfc"
  },
  "title" : "init(operation:alpha:beta:iA_desc:iB_desc:o_desc:)"
}
-->

# init(operation:alpha:beta:iA_desc:iB_desc:o_desc:)

Returns a new tensor-contraction parameters structure.

```
init(operation: UnsafePointer<CChar>, alpha: Float, beta: Float, iA_desc: BNNSNDArrayDescriptor, iB_desc: BNNSNDArrayDescriptor, o_desc: BNNSNDArrayDescriptor)
```

## Parameters

`operation`

The string that describes the operation.

`alpha`

Scaling that the operation applies to the result.

`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`

The descriptor of input matrix *A*.

`iB_desc`

The descriptor of input matrix *B*.

`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)