Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
tensor akışı:: işlem:: NicelenmişYeniden BoyutlandırÇift Doğrusal
#include <image_ops.h>
Nicelenmiş çift doğrusal enterpolasyonu kullanarak nicelenmiş images
size
göre yeniden boyutlandırın.
Özet
Giriş görüntüleri ve çıkış görüntüleri nicelenmiş türlerde olmalıdır.
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- görüntüler: şekilli 4-D
[batch, height, width, channels]
. - size: = 2 öğeden oluşan 1 boyutlu bir int32 Tensörü :
new_height, new_width
. Görüntüler için yeni boyut.
İsteğe bağlı özellikler (bkz. Attrs
):
- align_corners: True ise, giriş ve çıkış tensörlerinin 4 köşe pikselinin merkezleri, köşe piksellerindeki değerler korunarak hizalanır. Varsayılan olarak false olur.
İade:
- Yeniden boyutlandırılmış_resimlerin
Output
: Şekilli 4 boyutlu [batch, new_height, new_width, channels]
. -
Output
çıkışı_dak -
Output
Genel özellikler
Kamu işlevleri
Genel statik işlevler
Köşeleri Hizala
Attrs AlignCorners(
bool x
)
HalfPixelCenters
Attrs HalfPixelCenters(
bool x
)
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 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.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input) images and output images must be quantized types.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/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.2/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.2/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.2/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.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) out_min\n- [Output](/versions/r2.2/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.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` images, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` size, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min, ::`[tensorflow::Input](/versions/r2.2/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.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` images, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` size, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` max, const `[QuantizedResizeBilinear::Attrs](/versions/r2.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/api_docs/cc/struct/tensorflow/ops/quantized-resize-bilinear/attrs) | Optional attribute setters for [QuantizedResizeBilinear](/versions/r2.2/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```"]]