Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
flux tensoriel : : opérations : : QuantifierV2 : : Attributs
#include <array_ops.h>
Setters d'attributs facultatifs pour QuantizeV2 .
Résumé
Fonctions publiques |
---|
Axis (int64 x) | La valeur par défaut est -1. |
EnsureMinimumRange (float x) | La valeur par défaut est 0,01. |
Mode (StringPiece x) | La valeur par défaut est "MIN_COMBINED". |
NarrowRange (bool x) | La valeur par défaut est false. |
RoundMode (StringPiece x) | La valeur par défaut est "HALF_AWAY_FROM_ZERO". |
Attributs publics
axe_
int64 tensorflow::ops::QuantizeV2::Attrs::axis_ = -1
assurer_minimum_range_
float tensorflow::ops::QuantizeV2::Attrs::ensure_minimum_range_ = 0.01f
mode_
StringPiece tensorflow::ops::QuantizeV2::Attrs::mode_ = "MIN_COMBINED"
plage_étroite_
bool tensorflow::ops::QuantizeV2::Attrs::narrow_range_ = false
mode_ronde_
StringPiece tensorflow::ops::QuantizeV2::Attrs::round_mode_ = "HALF_AWAY_FROM_ZERO"
Fonctions publiques
Axe
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::Axis(
int64 x
)
La valeur par défaut est -1.
Assurer la plage minimale
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::EnsureMinimumRange(
float x
)
La valeur par défaut est 0,01.
Mode
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::Mode(
StringPiece x
)
La valeur par défaut est "MIN_COMBINED".
Plage étroite
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::NarrowRange(
bool x
)
La valeur par défaut est false.
Mode rond
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::RoundMode(
StringPiece x
)
La valeur par défaut est "HALF_AWAY_FROM_ZERO".
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (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](/versions/r2.2/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](/versions/r2.2/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](/versions/r2.2/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](/versions/r2.2/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](/versions/r2.2/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](/versions/r2.2/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\"."]]