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:: Giảm lượng tử hóa:: Attr
#include <array_ops.h>
Trình thiết lập thuộc tính tùy chọn cho Dequantize .
Bản tóm tắt
Chức năng công cộng |
---|
Axis (int64 x) | Mặc định là -1. |
Dtype (DataType x) | Loại tensor đầu ra. |
Mode (StringPiece x) | Mặc định là "MIN_COMBIND". |
NarrowRange (bool x) | Mặc định là sai. |
Thuộc tính công khai
trục_
int64 tensorflow::ops::Dequantize::Attrs::axis_ = -1
dtype_
DataType tensorflow::ops::Dequantize::Attrs::dtype_ = DT_FLOAT
cách thức_
StringPiece tensorflow::ops::Dequantize::Attrs::mode_ = "MIN_COMBINED"
phạm vi hẹp_
bool tensorflow::ops::Dequantize::Attrs::narrow_range_ = false
Chức năng công cộng
Trục
TF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::Axis(
int64 x
)
loại D
TF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::Dtype(
DataType x
)
Loại tensor đầu ra.
Hiện tại Dequantize hỗ trợ float và bfloat16. Nếu 'dtype' là 'bfloat16' thì nó chỉ hỗ trợ chế độ 'MIN_COMBIND'.
Mặc định là DT_FLOAT
Cách thức
TF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::Mode(
StringPiece x
)
Mặc định là "MIN_COMBIND".
Phạm vi hẹp
TF_MUST_USE_RESULT Attrs tensorflow::ops::Dequantize::Attrs::NarrowRange(
bool x
)
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-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-27 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](/versions/r2.3/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](/versions/r2.3/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](/versions/r2.3/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](/versions/r2.3/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](/versions/r2.3/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](/versions/r2.3/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."]]