tensorflow::ops::QuantizeAndDequantizeV3
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
#include <array_ops.h>
Quantizes then dequantizes a tensor.
Summary
This is almost identical to QuantizeAndDequantizeV2, except that num_bits is a tensor, so its value can change during training.
Arguments:
Returns:
Public attributes
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-04-20 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/r1.15/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/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/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/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)` num_bits)` ||\n| [QuantizeAndDequantizeV3](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1a5ec28b67b64ef7a45785390e91042d6d)`(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)` num_bits, const `[QuantizeAndDequantizeV3::Attrs](/versions/r1.15/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/r1.15/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/r1.15/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| [NarrowRange](#classtensorflow_1_1ops_1_1_quantize_and_dequantize_v3_1aba70d8cb905c10f26973de277469bdea)`(bool x)` | [Attrs](/versions/r1.15/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/r1.15/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/r1.15/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/r1.15/api_docs/cc/struct/tensorflow/ops/quantize-and-dequantize-v3/attrs) | Optional attribute setters for [QuantizeAndDequantizeV3](/versions/r1.15/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### 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```"]]