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óaRelu
#include <nn_ops.h>
Tính toán tuyến tính chỉnh lưu lượng tử hóa: max(features, 0)
Bản tóm tắt
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- min_features: Giá trị float mà giá trị lượng tử hóa thấp nhất đại diện.
- max_features: Giá trị float mà giá trị lượng tử hóa cao nhất đại diện.
Trả về:
- Kích hoạt
Output
: Có hình dạng đầu ra giống như "tính năng". -
Output
min_activations: Giá trị float mà giá trị lượng tử hóa thấp nhất đại diện. -
Output
max_activations: Giá trị float mà giá trị lượng tử hóa cao nhất đại diện.
Các hàm tĩnh công khai |
---|
OutType (DataType x) | |
Thuộc tính công khai
Chức năng công cộng
Các hàm tĩnh công khai
Loại ra
Attrs OutType(
DataType 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-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["# tensorflow::ops::QuantizedRelu Class Reference\n\ntensorflow::ops::QuantizedRelu\n==============================\n\n`#include \u003cnn_ops.h\u003e`\n\nComputes Quantized Rectified Linear: `max(features, 0)`\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- min_features: The float value that the lowest quantized value represents.\n- max_features: The float value that the highest quantized value represents.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) activations: Has the same output shape as \"features\".\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) min_activations: The float value that the lowest quantized value represents.\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) max_activations: The float value that the highest quantized value represents.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [QuantizedRelu](#classtensorflow_1_1ops_1_1_quantized_relu_1a5e0ded07ba3f7153a1fd2e8c4c9c0216)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` features, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min_features, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` max_features)` ||\n| [QuantizedRelu](#classtensorflow_1_1ops_1_1_quantized_relu_1a0ab4441e9d7f69037c5025e86c8f788f)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` features, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min_features, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` max_features, const `[QuantizedRelu::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/quantized-relu/attrs#structtensorflow_1_1ops_1_1_quantized_relu_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [activations](#classtensorflow_1_1ops_1_1_quantized_relu_1a02d03a3b17e4effc4ecfacc918af94aa) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [max_activations](#classtensorflow_1_1ops_1_1_quantized_relu_1a4d8de642f5ac09db0028d525ac65ac20) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [min_activations](#classtensorflow_1_1ops_1_1_quantized_relu_1a284154376c40954f461a7f12337dda9c) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_quantized_relu_1a43b2894a63c8973dff9ba7300efed1c7) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| [OutType](#classtensorflow_1_1ops_1_1_quantized_relu_1aea716e4dc2073aaa2cf530fa34709491)`(DataType x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/quantized-relu/attrs#structtensorflow_1_1ops_1_1_quantized_relu_1_1_attrs) |\n\n| ### Structs ||\n|-----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::QuantizedRelu::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/quantized-relu/attrs) | Optional attribute setters for [QuantizedRelu](/versions/r1.15/api_docs/cc/class/tensorflow/ops/quantized-relu#classtensorflow_1_1ops_1_1_quantized_relu). |\n\nPublic attributes\n-----------------\n\n### activations\n\n```text\n::tensorflow::Output activations\n``` \n\n### max_activations\n\n```scdoc\n::tensorflow::Output max_activations\n``` \n\n### min_activations\n\n```scdoc\n::tensorflow::Output min_activations\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### QuantizedRelu\n\n```gdscript\n QuantizedRelu(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input features,\n ::tensorflow::Input min_features,\n ::tensorflow::Input max_features\n)\n``` \n\n### QuantizedRelu\n\n```gdscript\n QuantizedRelu(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input features,\n ::tensorflow::Input min_features,\n ::tensorflow::Input max_features,\n const QuantizedRelu::Attrs & attrs\n)\n``` \n\nPublic static functions\n-----------------------\n\n### OutType\n\n```text\nAttrs OutType(\n DataType x\n)\n```"]]