Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::QuantizedResizeBilinear
#include <image_ops.h>
Resize quantized images
to size
using quantized bilinear interpolation.
Summary
Input images and output images must be quantized types.
Args:
- scope: A Scope object
- images: 4-D with shape
[batch, height, width, channels]
.
- size: = A 1-D int32 Tensor of 2 elements:
new_height, new_width
. The new size for the images.
Optional attributes (see 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.
Returns:
Output
resized_images: 4-D with shape [batch, new_height, new_width, channels]
.
Output
out_min
Output
out_max
Public attributes
Public functions
Public static functions
AlignCorners
Attrs AlignCorners(
bool x
)
HalfPixelCenters
Attrs HalfPixelCenters(
bool x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tensorflow::ops::QuantizedResizeBilinear Class Reference\n\ntensorflow::ops::QuantizedResizeBilinear\n========================================\n\n`#include \u003cimage_ops.h\u003e`\n\nResize quantized `images` to `size` using quantized bilinear interpolation.\n\nSummary\n-------\n\n[Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input) images and output images must be quantized types.\n\nArgs:\n\n- scope: A [Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- images: 4-D with shape `[batch, height, width, channels]`.\n- size: = A 1-D int32 [Tensor](/versions/r2.14/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of 2 elements: `new_height, new_width`. The new size for the images.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs#structtensorflow_1_1ops_1_1_quantized_resize_bilinear_1_1_attrs)):\n\n- 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.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) resized_images: 4-D with shape `[batch, new_height, new_width, channels]`.\n- [Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) out_min\n- [Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) out_max\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [QuantizedResizeBilinear](#classtensorflow_1_1ops_1_1_quantized_resize_bilinear_1ac52825879437da0b417099d2bf2bf983)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` images, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` size, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` max)` ||\n| [QuantizedResizeBilinear](#classtensorflow_1_1ops_1_1_quantized_resize_bilinear_1ade5654aab42f16525de546477fc1b18e)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` images, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` size, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` max, const `[QuantizedResizeBilinear::Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs#structtensorflow_1_1ops_1_1_quantized_resize_bilinear_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_quantized_resize_bilinear_1a842279002e4e0db02688d9d7035739a5) | [Operation](/versions/r2.14/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [out_max](#classtensorflow_1_1ops_1_1_quantized_resize_bilinear_1a0c12681451cf41bdbdd5b4ce3e56276e) | `::`[tensorflow::Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [out_min](#classtensorflow_1_1ops_1_1_quantized_resize_bilinear_1a2399c247560a6674f68332db798e9e99) | `::`[tensorflow::Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [resized_images](#classtensorflow_1_1ops_1_1_quantized_resize_bilinear_1a66faf15f60b9da85c98cd2fa1fa87205) | `::`[tensorflow::Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AlignCorners](#classtensorflow_1_1ops_1_1_quantized_resize_bilinear_1ab4769256e89a0e80457b29b8fe016d8e)`(bool x)` | [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs#structtensorflow_1_1ops_1_1_quantized_resize_bilinear_1_1_attrs) |\n| [HalfPixelCenters](#classtensorflow_1_1ops_1_1_quantized_resize_bilinear_1ab47609a179b8e020f6dd1dc5c50fe9cd)`(bool x)` | [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs#structtensorflow_1_1ops_1_1_quantized_resize_bilinear_1_1_attrs) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::QuantizedResizeBilinear::Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs) | Optional attribute setters for [QuantizedResizeBilinear](/versions/r2.14/api_docs/cc/class/tensorflow/ops/quantized-resize-bilinear#classtensorflow_1_1ops_1_1_quantized_resize_bilinear). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### out_max\n\n```scdoc\n::tensorflow::Output out_max\n``` \n\n### out_min\n\n```scdoc\n::tensorflow::Output out_min\n``` \n\n### resized_images\n\n```scdoc\n::tensorflow::Output resized_images\n``` \n\nPublic functions\n----------------\n\n### QuantizedResizeBilinear\n\n```gdscript\n QuantizedResizeBilinear(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input images,\n ::tensorflow::Input size,\n ::tensorflow::Input min,\n ::tensorflow::Input max\n)\n``` \n\n### QuantizedResizeBilinear\n\n```gdscript\n QuantizedResizeBilinear(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input images,\n ::tensorflow::Input size,\n ::tensorflow::Input min,\n ::tensorflow::Input max,\n const QuantizedResizeBilinear::Attrs & attrs\n)\n``` \n\nPublic static functions\n-----------------------\n\n### AlignCorners\n\n```text\nAttrs AlignCorners(\n bool x\n)\n``` \n\n### HalfPixelCenters\n\n```text\nAttrs HalfPixelCenters(\n bool x\n)\n```"]]