---
title: "init(method:i_desc:o_desc:align_corners:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/bnnslayerparametersresize/init(method:i_desc:o_desc:align_corners:)"
---

# init(method:i_desc:o_desc:align_corners:)

Returns a new resize-layer parameters structure from the specified parameters.

## Declaration

```swift
init(method: BNNSInterpolationMethod, i_desc: BNNSNDArrayDescriptor, o_desc: BNNSNDArrayDescriptor, align_corners: Bool)
```

## Parameters

- `method`: The interpolation method for resizing.
- `i_desc`: The descriptor of the input.
- `o_desc`: The descriptor of the output.
- `align_corners`: A Boolean value that specifies whether to align the corners of the upscaling grid to the center of scaling dimensions instead of to the edges.

## Discussion

Discussion important: The number of input dimensions must be equal to number of output dimensions. The resize must be in same direction for all dimensions.

## See Also

### Initializers

- [init()](accelerate/bnnslayerparametersresize/init().md)
