---
title: "applied(to:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/reshaper/applied(to:eventhandler:)"
---

# applied(to:eventHandler:)

Reshapes the input.

## Declaration

```swift
func applied(to input: MLShapedArray<Scalar>, eventHandler: EventHandler? = nil) throws -> MLShapedArray<Scalar>
```

## Parameters

- `input`: A shaped array.
- `eventHandler`: An event handler.

## Return Value

Return Value A shaped array with the target shape.

## See Also

### Performing the transformation

- [applied(_:eventHandler:)](createmlcomponents/reshaper/applied(_:eventhandler:).md)
