Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: Kwantyzowany Relu
#include <nn_ops.h>
Oblicza skwantyzowany prostownik liniowy: max(features, 0)
Streszczenie
Argumenty:
- zakres: Obiekt Scope
- min_features: Wartość zmiennoprzecinkowa reprezentowana przez najniższą skwantowaną wartość.
- max_features: Wartość zmiennoprzecinkowa reprezentowana przez najwyższą skwantowaną wartość.
Zwroty:
- Aktywacje
Output
: mają taki sam kształt wyjściowy jak „funkcje”. -
Output
min_activations: Wartość zmiennoprzecinkowa reprezentowana przez najniższą skwantowaną wartość. -
Output
max_activations: Wartość zmiennoprzecinkowa, którą reprezentuje najwyższa skwantowana wartość.
Publiczne funkcje statyczne |
---|
OutType (DataType x) | |
Atrybuty publiczne
Funkcje publiczne
Publiczne funkcje statyczne
Typ zewnętrzny
Attrs OutType(
DataType x
)
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 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/r2.1/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/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) activations: Has the same output shape as \"features\".\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) min_activations: The float value that the lowest quantized value represents.\n- [Output](/versions/r2.1/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/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` features, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min_features, ::`[tensorflow::Input](/versions/r2.1/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/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` features, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min_features, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` max_features, const `[QuantizedRelu::Attrs](/versions/r2.1/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/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [max_activations](#classtensorflow_1_1ops_1_1_quantized_relu_1a4d8de642f5ac09db0028d525ac65ac20) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [min_activations](#classtensorflow_1_1ops_1_1_quantized_relu_1a284154376c40954f461a7f12337dda9c) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_quantized_relu_1a43b2894a63c8973dff9ba7300efed1c7) | [Operation](/versions/r2.1/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/r2.1/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/r2.1/api_docs/cc/struct/tensorflow/ops/quantized-relu/attrs) | Optional attribute setters for [QuantizedRelu](/versions/r2.1/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```"]]