সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
টেনসরফ্লো :: অপস:: রিকুয়েন্টাইজ করুন
#include <math_ops.h>
কোয়ান্টাইজড input
টেনসরকে নিম্ন-নির্ভুল output
রূপান্তর করে।
সারাংশ
Quantized input
টেনসরকে একটি নিম্ন-নির্ভুল output
রূপান্তর করে, requested_output_min
এবং requested_output_max
এর সাথে নির্দিষ্ট করা আউটপুট পরিসর ব্যবহার করে।
[input_min, input_max]
হল স্কেলার ফ্লোট যা input
ডেটার ফ্লোট ব্যাখ্যার জন্য পরিসীমা নির্দিষ্ট করে। উদাহরণস্বরূপ, যদি input_min
হয় -1.0f এবং input_max
হয় 1.0f, এবং আমরা quint16
কোয়ান্টাইজড ডেটা নিয়ে কাজ করছি, তাহলে 16-বিট ডেটার একটি 0 মানকে -1.0f হিসাবে ব্যাখ্যা করা উচিত এবং একটি 65535 মানে 1.0f।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- input_min: ফ্লোট মান যা ন্যূনতম পরিমাপযুক্ত ইনপুট মান প্রতিনিধিত্ব করে।
- input_max: ফ্লোট মান যা সর্বাধিক পরিমাপযুক্ত ইনপুট মান উপস্থাপন করে।
- requested_output_min: ফ্লোট মান যা ন্যূনতম কোয়ান্টাইজড আউটপুট মান প্রতিনিধিত্ব করে।
- requested_output_max: ফ্লোট মান যা সর্বাধিক পরিমাপকৃত আউটপুট মান প্রতিনিধিত্ব করে।
- out_type: আউটপুটের ধরন। টিনপুটের চেয়ে কম গভীরতা হওয়া উচিত।
রিটার্ন:
-
Output
আউটপুট -
Output
আউটপুট_মিন: অনুরোধ করা_আউটপুট_মিন মানটি এই আউটপুটে অনুলিপি করা হয়েছে। -
Output
আউটপুট_ম্যাক্স: অনুরোধ করা_আউটপুট_ম্যাক্স মানটি এই আউটপুটে কপি করা হয়েছে।
পাবলিক বৈশিষ্ট্য
পাবলিক ফাংশন
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 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/r1.15/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/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) output\n- [Output](/versions/r1.15/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/r1.15/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/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_min, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_max, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` requested_output_min, ::`[tensorflow::Input](/versions/r1.15/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/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_requantize_1a23db07728fcff66ef701c31a42704390) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [output_max](#classtensorflow_1_1ops_1_1_requantize_1af6a7b4ea10c4da08919da8374402de2c) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [output_min](#classtensorflow_1_1ops_1_1_requantize_1a4c87262c09c761de0cb078e4c2584d1e) | `::`[tensorflow::Output](/versions/r1.15/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```"]]