---
title: "squeezingShape(at:)"
framework: coreml
role: symbol
role_heading: Instance Method
path: "coreml/mltensor/squeezingshape(at:)"
---

# squeezingShape(at:)

Removes the specified dimensions of size 1 from the shape of the tensor.

## Declaration

```swift
func squeezingShape(at axes: Int...) -> MLTensor
```

## Parameters

- `axes`: The axes to remove if the size is 1.

## Discussion

Discussion For example: let x = MLTensor(shape: [1, 2, 1], scalars: [1, 2], scalarType: Float.self) let y = x.squeezingShape(at: 0) y.shape // is [2, 1]

## See Also

### Removing dimensions from the shape of the tensor

- [squeezingShape()](coreml/mltensor/squeezingshape().md)
