Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
dòng chảy căng:: ôi:: Lượng tử hóaV2:: Attr
#include <array_ops.h>
Bộ cài đặt thuộc tính tùy chọn cho QuantizeV2 .
Bản tóm tắt
Chức năng công cộng |
---|
Axis (int64 x) | Mặc định là -1. |
EnsureMinimumRange (float x) | Mặc định là 0,01. |
Mode (StringPiece x) | Mặc định là "MIN_COMBIND". |
NarrowRange (bool x) | Mặc định là sai. |
RoundMode (StringPiece x) | Mặc định là "HALF_AWAY_FROM_ZERO". |
Thuộc tính công khai
trục_
int64 tensorflow::ops::QuantizeV2::Attrs::axis_ = -1
đảm bảo_minimum_range_
float tensorflow::ops::QuantizeV2::Attrs::ensure_minimum_range_ = 0.01f
cách thức_
StringPiece tensorflow::ops::QuantizeV2::Attrs::mode_ = "MIN_COMBINED"
phạm vi hẹp_
bool tensorflow::ops::QuantizeV2::Attrs::narrow_range_ = false
vòng_mode_
StringPiece tensorflow::ops::QuantizeV2::Attrs::round_mode_ = "HALF_AWAY_FROM_ZERO"
Chức năng công cộng
Trục
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::Axis(
int64 x
)
Đảm bảoPhạm vi tối thiểu
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::EnsureMinimumRange(
float x
)
Cách thức
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::Mode(
StringPiece x
)
Mặc định là "MIN_COMBIND".
Phạm vi hẹp
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::NarrowRange(
bool x
)
Chế độ tròn
TF_MUST_USE_RESULT Attrs tensorflow::ops::QuantizeV2::Attrs::RoundMode(
StringPiece x
)
Mặc định là "HALF_AWAY_FROM_ZERO".
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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\"."]]