---
title: "fma(y:z:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/builder/tensor/fma(y:z:)"
---

# fma(y:z:)

Adds an element-wise fused multiply-add operation to the current graph.

## Declaration

```swift
func fma(y: some BNNSGraph.Builder.OperationParameter<T>, z: some BNNSGraph.Builder.OperationParameter<T>) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

- `y`: The y in x * y + z.
- `z`: The z in x * y + z.

## Discussion

Discussion This function treats the current tensor as x in x * y + z.
