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

# init(alpha:i_desc:o_desc:)

Returns a new Gram matrix layer parameters structure from the specified parameters.

```
init(alpha: Float, i_desc: BNNSNDArrayDescriptor, o_desc: BNNSNDArrayDescriptor)
```

## Parameters

`alpha`

A value to scale the result.

`i_desc`

The descriptor of the input.

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