Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::QuantizeV2::Attrs
#include <array_ops.h>
Optional attribute setters for QuantizeV2.
Summary
Public functions
|
Axis(int64 x)
|
Defaults to -1.
|
EnsureMinimumRange(float x)
|
Defaults to 0.01.
|
Mode(StringPiece x)
|
Defaults to "MIN_COMBINED".
|
NarrowRange(bool x)
|
Defaults to false.
|
RoundMode(StringPiece x)
|
Defaults to "HALF_AWAY_FROM_ZERO".
|
Public attributes
axis_
int64 tensorflow::ops::QuantizeV2::Attrs::axis_ = -1
ensure_minimum_range_
float tensorflow::ops::QuantizeV2::Attrs::ensure_minimum_range_ = 0.01f
mode_
StringPiece tensorflow::ops::QuantizeV2::Attrs::mode_ = "MIN_COMBINED"
narrow_range_
bool tensorflow::ops::QuantizeV2::Attrs::narrow_range_ = false
round_mode_
StringPiece tensorflow::ops::QuantizeV2::Attrs::round_mode_ = "HALF_AWAY_FROM_ZERO"
Public functions
Axis
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::Axis(
int64 x
)
EnsureMinimumRange
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::EnsureMinimumRange(
float x
)
Mode
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::Mode(
StringPiece x
)
Defaults to "MIN_COMBINED".
NarrowRange
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::NarrowRange(
bool x
)
RoundMode
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::RoundMode(
StringPiece x
)
Defaults to "HALF_AWAY_FROM_ZERO".
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::QuantizeV2::Attrs Struct Reference\n\ntensorflow::ops::QuantizeV2::Attrs\n==================================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [QuantizeV2](/api_docs/cc/class/tensorflow/ops/quantize-v2#classtensorflow_1_1ops_1_1_quantize_v2).\n\nSummary\n-------\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------------------------------|---------------|\n| [axis_](#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs_1ae9f5b29be1f64c52ea5184db06ae2130)` = -1` | `int64` |\n| [ensure_minimum_range_](#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs_1a117b1ce5619f8626455dd09aeacc9951)` = 0.01f` | `float` |\n| [mode_](#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs_1ab20601b9886b94ef53207b77823b692d)` = \"MIN_COMBINED\"` | `StringPiece` |\n| [narrow_range_](#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs_1a47d043300e82e57a1cc66aaca8dd5de8)` = false` | `bool` |\n| [round_mode_](#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs_1addb56b3ebcd0dfa9331d7506c05d8a47)` = \"HALF_AWAY_FROM_ZERO\"` | `StringPiece` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Axis](#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs_1addef3a92617cd81a59416eba93e7afb7)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/quantize-v2/attrs#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs) Defaults to -1. |\n| [EnsureMinimumRange](#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs_1a36e31baf86669cdfd75cb17f51919c0d)`(float x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/quantize-v2/attrs#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs) Defaults to 0.01. |\n| [Mode](#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs_1a7f0adbc174ddea06f065e004f4a1f02d)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/quantize-v2/attrs#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs) Defaults to \"MIN_COMBINED\". |\n| [NarrowRange](#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs_1a0bfae591c360021497e670bf197b2fb5)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/quantize-v2/attrs#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs) Defaults to false. |\n| [RoundMode](#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs_1a76bb96c1bb8564f95f1a430c7df5b606)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/api_docs/cc/struct/tensorflow/ops/quantize-v2/attrs#structtensorflow_1_1ops_1_1_quantize_v2_1_1_attrs) Defaults to \"HALF_AWAY_FROM_ZERO\". |\n\nPublic attributes\n-----------------\n\n### axis_\n\n```scdoc\nint64 tensorflow::ops::QuantizeV2::Attrs::axis_ = -1\n``` \n\n### ensure_minimum_range_\n\n```scdoc\nfloat tensorflow::ops::QuantizeV2::Attrs::ensure_minimum_range_ = 0.01f\n``` \n\n### mode_\n\n```scdoc\nStringPiece tensorflow::ops::QuantizeV2::Attrs::mode_ = \"MIN_COMBINED\"\n``` \n\n### narrow_range_\n\n```scdoc\nbool tensorflow::ops::QuantizeV2::Attrs::narrow_range_ = false\n``` \n\n### round_mode_\n\n```scdoc\nStringPiece tensorflow::ops::QuantizeV2::Attrs::round_mode_ = \"HALF_AWAY_FROM_ZERO\"\n``` \n\nPublic functions\n----------------\n\n### Axis\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::Axis(\n int64 x\n)\n``` \nDefaults to -1. \n\n### EnsureMinimumRange\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::EnsureMinimumRange(\n float x\n)\n``` \nDefaults to 0.01. \n\n### Mode\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::Mode(\n StringPiece x\n)\n``` \nDefaults to \"MIN_COMBINED\". \n\n### NarrowRange\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::NarrowRange(\n bool x\n)\n``` \nDefaults to false. \n\n### RoundMode\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::RoundMode(\n StringPiece x\n)\n``` \nDefaults to \"HALF_AWAY_FROM_ZERO\"."]]