# tensorflow::ops::QuantizedResizeBilinear::Attrs Struct Reference

# tensorflow::ops::QuantizedResizeBilinear::Attrs

`#include <image_ops.h>`

Optional attribute setters for [QuantizedResizeBilinear](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/quantized-resize-bilinear#classtensorflow_1_1ops_1_1_quantized_resize_bilinear).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs#structtensorflow_1_1ops_1_1_quantized_resize_bilinear_1_1_attrs_1a6427dd58a531580369c3bd9572c49a3b = false` | `bool` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs#structtensorflow_1_1ops_1_1_quantized_resize_bilinear_1_1_attrs_1a0dd844b04e17cf459df4c8dd7a93fea0 = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs#structtensorflow_1_1ops_1_1_quantized_resize_bilinear_1_1_attrs_1a8631df7dd3ae2671e0b1a3049c61ce8b(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs#structtensorflow_1_1ops_1_1_quantized_resize_bilinear_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/quantized-resize-bilinear/attrs#structtensorflow_1_1ops_1_1_quantized_resize_bilinear_1_1_attrs_1a3bfb77dd2c94a1eead885f9524df2abc(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs#structtensorflow_1_1ops_1_1_quantized_resize_bilinear_1_1_attrs` Defaults to false. |

## Public attributes

### align_corners_

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

### half_pixel_centers_

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

## Public functions

### AlignCorners

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizedResizeBilinear::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::QuantizedResizeBilinear::Attrs::HalfPixelCenters(
  bool x
)
```
Defaults to false.