<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSGraph/Builder/OperationParameter",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate9BNNSGraphO7BuilderV18OperationParameterP"
  },
  "title" : "BNNSGraph.Builder.OperationParameter"
}
-->

# BNNSGraph.Builder.OperationParameter

A protocol that allows functions to accept either tensors or collections.

```
protocol OperationParameter<Element>
```

## Topics

### Operators

[`static func * (Self, BNNSGraph.Builder.Tensor<Self.Element>) -> BNNSGraph.Builder.Tensor<Self.Element>`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/*(_:_:)-386tk)

Adds an element-wise multiplication operation to the current graph.

[`static func * (BNNSGraph.Builder.Tensor<Self.Element>, Self) -> BNNSGraph.Builder.Tensor<Self.Element>`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/*(_:_:)-3h4np)

Adds an element-wise multiplication operation to the current graph.

[`static func + (BNNSGraph.Builder.Tensor<Self.Element>, Self) -> BNNSGraph.Builder.Tensor<Self.Element>`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/+(_:_:)-2u9f3)

Adds an element-wise addition operation to the current graph.

[`static func + (Self, BNNSGraph.Builder.Tensor<Self.Element>) -> BNNSGraph.Builder.Tensor<Self.Element>`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/+(_:_:)-8d4pt)

Adds an element-wise addition operation to the current graph.

[`static func - (Self, BNNSGraph.Builder.Tensor<Self.Element>) -> BNNSGraph.Builder.Tensor<Self.Element>`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/-(_:_:)-8vtfy)

Adds an element-wise subtraction operation to the current graph.

[`static func - (BNNSGraph.Builder.Tensor<Self.Element>, Self) -> BNNSGraph.Builder.Tensor<Self.Element>`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/-(_:_:)-9ywu4)

Adds an element-wise subtraction operation to the current graph.

[`static func / (Self, BNNSGraph.Builder.Tensor<Self.Element>) -> BNNSGraph.Builder.Tensor<Self.Element>`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/_(_:_:)-1ojod)

Adds an element-wise division operation to the current graph.

[`static func / (BNNSGraph.Builder.Tensor<Self.Element>, Self) -> BNNSGraph.Builder.Tensor<Self.Element>`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/_(_:_:)-78g8y)

Adds an element-wise division operation to the current graph.

[`static func % (BNNSGraph.Builder.Tensor<Self.Element>, Self) -> BNNSGraph.Builder.Tensor<Self.Element>`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/_(_:_:)-8fwxf)

Adds an element-wise remainder of division operation to the current graph.

### Associated Types

[`associatedtype Element : BNNSScalar`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/Element)

### Instance Methods

[`func graphBuilderTensor(BNNSGraph.Builder) -> BNNSGraph.Builder.Tensor<Self.Element>`](/documentation/Accelerate/BNNSGraph/Builder/OperationParameter/graphBuilderTensor(_:))

Returns a tensor for the specified BNNS Graph builder.

## Relationships

### Conforming Types

[`Tensor`](/documentation/Accelerate/BNNSGraph/Builder/Tensor)

---

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)