---
title: tensorShape()
framework: accelerate
role: symbol
role_heading: Instance Method
path: accelerate/bnnsgraph/builder/tensor/tensorshape()
---

# tensorShape()

Adds a shape operation to the current graph.

## Declaration

```swift
func tensorShape() -> BNNSGraph.Builder.Tensor<Int32>
```

## Discussion

Discussion This function returns a tensor that contains the shape of self.
