จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: การหาปริมาณและการลดปริมาณV3
#include <array_ops.h>
การหาปริมาณแล้วจึงแยกเทนเซอร์ออก
สรุป
สิ่งนี้เกือบจะเหมือนกับ QuantizeAndDequantizeV2 ยกเว้นว่า num_bits นั้นเป็นเทนเซอร์ ดังนั้นค่าของมันจึงสามารถเปลี่ยนแปลงได้ในระหว่างการฝึก
ข้อโต้แย้ง:
ผลตอบแทน:
คุณลักษณะสาธารณะ
งานสาธารณะ
โหนด
::tensorflow::Node * node() const
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
แกน
Attrs Axis(
int64 x
)
ช่วงแคบ
Attrs NarrowRange(
bool x
)
ช่วงที่กำหนด
Attrs RangeGiven(
bool x
)
Attrs SignedInput(
bool x
)
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# tensorflow::ops::QuantizeAndDequantizeV3 Class Reference\n\ntensorflow::ops::QuantizeAndDequantizeV3\n========================================\n\n`#include \u003carray_ops.h\u003e`\n\nQuantizes then dequantizes a tensor.\n\nSummary\n-------\n\nThis is almost identical to [QuantizeAndDequantizeV2](/versions/r2.3/api_docs/cc/class/tensorflow/ops/quantize-and-dequantize-v2#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v2), except that num_bits is a tensor, so its value can change during training.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The output tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [QuantizeAndDequantizeV3](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1a2b0da7dac824893b88830e315543a00d)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_min, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_max, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` num_bits)` ||\n| [QuantizeAndDequantizeV3](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1a5ec28b67b64ef7a45785390e91042d6d)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_min, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_max, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` num_bits, const `[QuantizeAndDequantizeV3::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantize-and-dequantize-v3/attrs#structtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1a8aa70ba4802094bc7d64cf7c38915301) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1a237fd659faaa4a2508a141f02bd2fda1) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1a2fe42b89b1a1a5d4a9e2e772624f3859)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1a315fb3b3e2ca6a75ed7d8e22d90b4086)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1a7bcde8fb5d1f0e0285a036916e243aab)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Axis](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1a83628e2124fba6f4c409c65419bb09c7)`(int64 x)` | [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantize-and-dequantize-v3/attrs#structtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1_1_attrs) |\n| [NarrowRange](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1aba70d8cb905c10f26973de277469bdea)`(bool x)` | [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantize-and-dequantize-v3/attrs#structtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1_1_attrs) |\n| [RangeGiven](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1ab62c72984150a3a4ed4feffb9fa6ec95)`(bool x)` | [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantize-and-dequantize-v3/attrs#structtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1_1_attrs) |\n| [SignedInput](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1af8150be09574c209bb7af62829d2518c)`(bool x)` | [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantize-and-dequantize-v3/attrs#structtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1_1_attrs) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::QuantizeAndDequantizeV3::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/quantize-and-dequantize-v3/attrs) | Optional attribute setters for [QuantizeAndDequantizeV3](/versions/r2.3/api_docs/cc/class/tensorflow/ops/quantize-and-dequantize-v3#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### QuantizeAndDequantizeV3\n\n```gdscript\n QuantizeAndDequantizeV3(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input input_min,\n ::tensorflow::Input input_max,\n ::tensorflow::Input num_bits\n)\n``` \n\n### QuantizeAndDequantizeV3\n\n```gdscript\n QuantizeAndDequantizeV3(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input input_min,\n ::tensorflow::Input input_max,\n ::tensorflow::Input num_bits,\n const QuantizeAndDequantizeV3::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Axis\n\n```text\nAttrs Axis(\n int64 x\n)\n``` \n\n### NarrowRange\n\n```text\nAttrs NarrowRange(\n bool x\n)\n``` \n\n### RangeGiven\n\n```text\nAttrs RangeGiven(\n bool x\n)\n``` \n\n### SignedInput\n\n```text\nAttrs SignedInput(\n bool x\n)\n```"]]