Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::Dequantize::Attrs
#include <array_ops.h>
Optional attribute setters for Dequantize.
Summary
Public functions
|
Axis(int64 x)
|
Defaults to -1.
|
Dtype(DataType x)
|
Type of the output tensor.
|
Mode(StringPiece x)
|
Defaults to "MIN_COMBINED".
|
NarrowRange(bool x)
|
Defaults to false.
|
Public attributes
axis_
int64 tensorflow::ops::Dequantize::Attrs::axis_ = -1
dtype_
DataType tensorflow::ops::Dequantize::Attrs::dtype_ = DT_FLOAT
mode_
StringPiece tensorflow::ops::Dequantize::Attrs::mode_ = "MIN_COMBINED"
narrow_range_
bool tensorflow::ops::Dequantize::Attrs::narrow_range_ = false
Public functions
Axis
TF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::Axis(
int64 x
)
Dtype
TF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::Dtype(
DataType x
)
Type of the output tensor.
Currently Dequantize supports float and bfloat16. If 'dtype' is 'bfloat16', it only supports 'MIN_COMBINED' mode.
Defaults to DT_FLOAT
Mode
TF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::Mode(
StringPiece x
)
Defaults to "MIN_COMBINED".
NarrowRange
TF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::NarrowRange(
bool x
)
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. Some content is licensed under the numpy license.
Last updated 2021-11-15 UTC.
[null,null,["Last updated 2021-11-15 UTC."],[],[],null,["# tensorflow::ops::Dequantize::Attrs Struct Reference\n\ntensorflow::ops::Dequantize::Attrs\n==================================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [Dequantize](/api_docs/cc/class/tensorflow/ops/dequantize#classtensorflow_1_1ops_1_1_dequantize).\n\nSummary\n-------\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------|---------------|\n| [axis_](#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs_1af432ad7e9303ee6c76c19a9afda0ca89)` = -1` | `int64` |\n| [dtype_](#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs_1a68b0e8b37645f29a888b531684cff039)` = DT_FLOAT` | `DataType` |\n| [mode_](#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs_1a2e72e17bf315adb13470a951b4e0ae05)` = \"MIN_COMBINED\"` | `StringPiece` |\n| [narrow_range_](#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs_1a945ba2aa0ec8debc8651c5452262189b)` = false` | `bool` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Axis](#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs_1a419b6b66d5587f5528fc9515d9fff5aa)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/dequantize/attrs#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs) Defaults to -1. |\n| [Dtype](#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs_1ab247f7c724a2428f98ebb271428dc842)`(DataType x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/dequantize/attrs#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs) Type of the output tensor. |\n| [Mode](#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs_1a5d92cbf9b00f4a13f79095f6921bff33)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/dequantize/attrs#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs) Defaults to \"MIN_COMBINED\". |\n| [NarrowRange](#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs_1acb7be40f55b2d45f7169ba175baf77c4)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/dequantize/attrs#structtensorflow_1_1ops_1_1_dequantize_1_1_attrs) Defaults to false. |\n\nPublic attributes\n-----------------\n\n### axis_\n\n```scdoc\nint64 tensorflow::ops::Dequantize::Attrs::axis_ = -1\n``` \n\n### dtype_\n\n```carbon\nDataType tensorflow::ops::Dequantize::Attrs::dtype_ = DT_FLOAT\n``` \n\n### mode_\n\n```scdoc\nStringPiece tensorflow::ops::Dequantize::Attrs::mode_ = \"MIN_COMBINED\"\n``` \n\n### narrow_range_\n\n```scdoc\nbool tensorflow::ops::Dequantize::Attrs::narrow_range_ = false\n``` \n\nPublic functions\n----------------\n\n### Axis\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::Axis(\n int64 x\n)\n``` \nDefaults to -1. \n\n### Dtype\n\n```carbon\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::Dtype(\n DataType x\n)\n``` \nType of the output tensor.\n\nCurrently [Dequantize](/api_docs/cc/class/tensorflow/ops/dequantize#classtensorflow_1_1ops_1_1_dequantize) supports float and bfloat16. If 'dtype' is 'bfloat16', it only supports 'MIN_COMBINED' mode.\n\nDefaults to DT_FLOAT \n\n### Mode\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::Mode(\n StringPiece x\n)\n``` \nDefaults to \"MIN_COMBINED\". \n\n### NarrowRange\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::NarrowRange(\n bool x\n)\n``` \nDefaults to false."]]