จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: จัดปริมาณใหม่
#include <math_ops.h>
แปลงเทนเซอร์ input
ปริมาณให้เป็น output
ที่มีความแม่นยำต่ำกว่า
สรุป
แปลงเทนเซอร์ input
ปริมาณให้เป็น output
ที่มีความแม่นยำต่ำกว่า โดยใช้ช่วงเอาต์พุตที่ระบุด้วย requested_output_min
และ requested_output_max
[input_min, input_max]
เป็นสเกลาร์โฟลตที่ระบุช่วงสำหรับการตีความโฟลตของข้อมูล input
ตัวอย่างเช่น หาก input_min
คือ -1.0f และ input_max
คือ 1.0f และเรากำลังจัดการกับข้อมูลเชิงปริมาณ quint16
ดังนั้นค่า 0 ในข้อมูล 16 บิตควรถูกตีความว่าเป็น -1.0f และ 65535 หมายถึง 1.0f
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- input_min: ค่าทศนิยมที่ค่าอินพุตเชิงปริมาณขั้นต่ำเป็นตัวแทน
- input_max: ค่าทศนิยมที่ค่าอินพุตเชิงปริมาณสูงสุดเป็นตัวแทน
- Request_output_min: ค่าทศนิยมที่ค่าเอาต์พุตเชิงปริมาณขั้นต่ำแสดงถึง
- Request_output_max: ค่าทศนิยมที่ค่าเอาต์พุตเชิงปริมาณสูงสุดแสดงถึง
- out_type: ประเภทของเอาต์พุต ควรมีความลึกบิตต่ำกว่า Tinput
ผลตอบแทน:
-
Output
เอาท์พุต -
Output
output_min: ค่า request_output_min จะถูกคัดลอกไปยังเอาต์พุตนี้ -
Output
output_max: ค่า request_output_max จะถูกคัดลอกไปยังเอาต์พุตนี้
คุณลักษณะสาธารณะ
งานสาธารณะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[],[],null,["# tensorflow::ops::Requantize Class Reference\n\ntensorflow::ops::Requantize\n===========================\n\n`#include \u003cmath_ops.h\u003e`\n\nConverts the quantized `input` tensor into a lower-precision `output`.\n\nSummary\n-------\n\nConverts the quantized `input` tensor into a lower-precision `output`, using the output range specified with `requested_output_min` and `requested_output_max`.\n\n`[input_min, input_max]` are scalar floats that specify the range for the float interpretation of the `input` data. For example, if `input_min` is -1.0f and `input_max` is 1.0f, and we are dealing with `quint16` quantized data, then a 0 value in the 16-bit data should be interpreted as -1.0f, and a 65535 means 1.0f.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input_min: The float value that the minimum quantized input value represents.\n- input_max: The float value that the maximum quantized input value represents.\n- requested_output_min: The float value that the minimum quantized output value represents.\n- requested_output_max: The float value that the maximum quantized output value represents.\n- out_type: The type of the output. Should be a lower bit depth than Tinput.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) output\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) output_min: The requested_output_min value is copied into this output.\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) output_max: The requested_output_max value is copied into this output.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Requantize](#classtensorflow_1_1ops_1_1_requantize_1a308b260de4bb034d5561eb8a52310abc)`(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)` input, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_min, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_max, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` requested_output_min, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` requested_output_max, DataType out_type)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_requantize_1a418db3e46025f9b9e36d77ff8233a408) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_requantize_1a23db07728fcff66ef701c31a42704390) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [output_max](#classtensorflow_1_1ops_1_1_requantize_1af6a7b4ea10c4da08919da8374402de2c) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [output_min](#classtensorflow_1_1ops_1_1_requantize_1a4c87262c09c761de0cb078e4c2584d1e) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\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\n### output_max\n\n```scdoc\n::tensorflow::Output output_max\n``` \n\n### output_min\n\n```scdoc\n::tensorflow::Output output_min\n``` \n\nPublic functions\n----------------\n\n### Requantize\n\n```gdscript\n Requantize(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input input_min,\n ::tensorflow::Input input_max,\n ::tensorflow::Input requested_output_min,\n ::tensorflow::Input requested_output_max,\n DataType out_type\n)\n```"]]