tensorflow:: אופס:: QuantizedResizeBilinear
#include <image_ops.h>
שנה את גודל images
הקוונטיות size
באמצעות אינטרפולציה בילינארית כמותית.
תַקצִיר
תמונות קלט ותמונות פלט חייבות להיות מסוגים מכוונטיים.
טיעונים:
- scope: אובייקט Scope
- תמונות: 4-D עם צורה
[batch, height, width, channels]
. - גודל: = A 1-D int32 Tensor של 2 אלמנטים:
new_height, new_width
. הגודל החדש לתמונות.
מאפיינים אופציונליים (ראה Attrs
):
- align_corners: אם נכון, מרכזים של 4 פיקסלים פינתיים של טנסור הקלט והפלט מיושרים, תוך שמירה על הערכים בפיקסלים הפיניים. ברירת המחדל ל-false.
החזרות:
-
Output
resized_images: 4-D עם צורה[batch, new_height, new_width, channels]
. -
Output
out_min -
Output
out_max
בנאים והורסים | |
---|---|
QuantizedResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, :: tensorflow::Input min, :: tensorflow::Input max) | |
QuantizedResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, :: tensorflow::Input min, :: tensorflow::Input max, const QuantizedResizeBilinear::Attrs & attrs) |
תכונות ציבוריות | |
---|---|
operation | |
out_max | |
out_min | |
resized_images |
פונקציות סטטיות ציבוריות | |
---|---|
AlignCorners (bool x) | |
HalfPixelCenters (bool x) |
מבנים | |
---|---|
tensorflow:: ops:: QuantizedResizeBilinear:: Attrs | קובעי תכונות אופציונליים עבור QuantizedResizeBilinear . |
תכונות ציבוריות
מִבצָע
Operation operation
out_max
::tensorflow::Output out_max
out_min
::tensorflow::Output out_min
resized_images
::tensorflow::Output resized_images
תפקידים ציבוריים
QuantizedResizeBilinear
QuantizedResizeBilinear( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size, ::tensorflow::Input min, ::tensorflow::Input max )
QuantizedResizeBilinear
QuantizedResizeBilinear( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size, ::tensorflow::Input min, ::tensorflow::Input max, const QuantizedResizeBilinear::Attrs & attrs )
פונקציות סטטיות ציבוריות
AlignCorners
Attrs AlignCorners( bool x )
HalfPixelCenters
Attrs HalfPixelCenters( bool x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 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```"]]