---
title: shape
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcupsamplelayer/shape-61n1u
---

# shape

An array that contains the dimensions of the result tensor.

## Declaration

```swift
var shape: [Int] { get }
```

## See Also

### Inspecting Upsample Layers

- [sampleMode](mlcompute/mlcupsamplelayer/samplemode.md)
- [alignsCorners](mlcompute/mlcupsamplelayer/alignscorners.md)
