# tensorflow::ops::ResizeBicubic::Attrs Struct Reference

# tensorflow::ops::ResizeBicubic::Attrs

`#include <image_ops.h>`

Optional attribute setters for [ResizeBicubic](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/resize-bicubic#classtensorflow_1_1ops_1_1_resize_bicubic).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs#structtensorflow_1_1ops_1_1_resize_bicubic_1_1_attrs_1a9387d45e5f6a7969b6f7d4dfa499aa7a = false` | `bool` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs#structtensorflow_1_1ops_1_1_resize_bicubic_1_1_attrs_1a8d5369b389deb26ec05c64a3febedeb9 = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs#structtensorflow_1_1ops_1_1_resize_bicubic_1_1_attrs_1a1f6d1321882333f9eafbdef3ba2af139(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs#structtensorflow_1_1ops_1_1_resize_bicubic_1_1_attrs` If true, the centers of the 4 corner pixels of the input and output tensors are aligned, preserving the values at the corner pixels. |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs#structtensorflow_1_1ops_1_1_resize_bicubic_1_1_attrs_1a302dd55406cf5a4920a20a5506184e08(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/resize-bicubic/attrs#structtensorflow_1_1ops_1_1_resize_bicubic_1_1_attrs` Defaults to false. |

## Public attributes

### align_corners_

```
bool tensorflow::ops::ResizeBicubic::Attrs::align_corners_ = false
```

### half_pixel_centers_

```
bool tensorflow::ops::ResizeBicubic::Attrs::half_pixel_centers_ = false
```

## Public functions

### AlignCorners

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::ResizeBicubic::Attrs::AlignCorners(
  bool x
)
```
If true, the centers of the 4 corner pixels of the input and output tensors are aligned, preserving the values at the corner pixels.

Defaults to false.

Defaults to false

### HalfPixelCenters

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::ResizeBicubic::Attrs::HalfPixelCenters(
  bool x
)
```
Defaults to false.