# tensorflow::ops::ResizeBilinear Class Reference

# tensorflow::
ops::
ResizeBilinear

`
#include <image_ops.h>
`


Resize
`
images
`
to
`
size
`
using bilinear interpolation.

## Summary


[Input](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)
images can be of different types but output images are always float.


Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object
- images: 4-D with shape `
  [batch, height, width, channels]
  ` .
- size: = A 1-D int32 [Tensor](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of 2 elements: `
  new_height, new_width
  ` . The new size for the images.

<br />


Optional attributes (see
`
https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/resize-bilinear/attrs#structtensorflow_1_1ops_1_1_resize_bilinear_1_1_attrs
`
):

- align_corners: 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.

<br />


Returns:

- `
  https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` : 4-D with shape `
  [batch, new_height, new_width, channels]
  ` .

<br />

| ### Constructors and Destructors ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear_1a981aa658a845a625503e7e42c2f0885c (const :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input images, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input size) ` ||
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear_1ad887a5d2954f777b5528579f4c60589b (const :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input images, :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input size, const https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/resize-bilinear/attrs#structtensorflow_1_1ops_1_1_resize_bilinear_1_1_attrs & attrs) ` ||

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear_1ac1253b0351c139e9c4782e0ce62c7aa2 ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear_1a6487d7e2a3fd89b0ba594300ddd2e2d7 ` | ` :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear_1af9816ad8aa06bfbe416f9ada05a5367c () const ` | ` ::tensorflow::Node * ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear_1a0f822a29ed600eb63bccc395b6540a83 () const ` | ` ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear_1aafa3001b38c457833115ce0f523e3751 () const ` | ` ` |

| ### Public static functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear_1a16fe808dfb000fd2694d1fbe1b706437 (bool x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/resize-bilinear/attrs#structtensorflow_1_1ops_1_1_resize_bilinear_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear_1a040b5f7ab939a890ca9d83fddc789f91 (bool x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/resize-bilinear/attrs#structtensorflow_1_1ops_1_1_resize_bilinear_1_1_attrs ` |

| ### Structs ||
|---|---|
| [tensorflow:: ops:: ResizeBilinear:: Attrs](https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/resize-bilinear/attrs) | Optional attribute setters for [ResizeBilinear](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/resize-bilinear#classtensorflow_1_1ops_1_1_resize_bilinear) . |

## Public attributes

### operation

```
Operation operation
```

### resized_images

```
::tensorflow::Output resized_images
```

## Public functions

### ResizeBilinear

```
 ResizeBilinear(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size
)
```

### ResizeBilinear

```
 ResizeBilinear(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size,
  const ResizeBilinear::Attrs & attrs
)
```

### node

```
::tensorflow::Node * node() const 
```

### operator::tensorflow::Input

```
 operator::tensorflow::Input() const 
```

### operator::tensorflow::Output

```
 operator::tensorflow::Output() const 
```

## Public static functions

### AlignCorners

```
Attrs AlignCorners(
  bool x
)
```

### HalfPixelCenters

```
Attrs HalfPixelCenters(
  bool x
)
```