<!--
{
  "availability" : [
    "*: -",
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNS/GramLayer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4BNNSO9GramLayerC"
  },
  "title" : "BNNS.GramLayer"
}
-->

# BNNS.GramLayer

A layer object that wraps a Gram matrix filter and manages its deinitialization.

```
class GramLayer
```

## Topics

### Creating a Gram Matrix Layer

[`convenience init?(input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, alpha: Float, filterParameters: BNNSFilterParameters?)`](/documentation/Accelerate/BNNS/GramLayer/init(input:output:alpha:filterParameters:))

Returns a new Gram matrix layer.

## Relationships

### Inherits From

[`UnaryLayer`](/documentation/Accelerate/BNNS/UnaryLayer)

---

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)