---
title: "concatenate(_:axis:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/builder/concatenate(_:axis:)"
---

# concatenate(_:axis:)

Adds a concatenation operation to the current graph.

## Declaration

```swift
func concatenate<T>(_ tensors: [BNNSGraph.Builder.Tensor<T>], axis: Int) -> BNNSGraph.Builder.Tensor<T> where T : BNNSScalar
```

## Parameters

- `tensors`: An array that contains the tensors that the operation concatenates.
- `axis`: The axis along which the operation performs concatenation.
