Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::QuantizedRelu
#include <nn_ops.h>
Computes Quantized Rectified Linear: max(features, 0)
Summary
Arguments:
- scope: A Scope object
- min_features: The float value that the lowest quantized value represents.
- max_features: The float value that the highest quantized value represents.
Returns:
Output
activations: Has the same output shape as "features".
Output
min_activations: The float value that the lowest quantized value represents.
Output
max_activations: The float value that the highest quantized value represents.
Public static functions
|
OutType(DataType x)
|
|
Public attributes
Public functions
Public static functions
OutType
Attrs OutType(
DataType x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 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```"]]