tf.raw_ops.QuantizedRelu
Вычисляет квантованную линейную функцию выпрямления: max(features, 0)
tf.raw_ops.QuantizedRelu(
features,
min_features,
max_features,
out_type=tf.dtypes.quint8,
name=None
)
| Аргументы | |
|---|---|
features | Tensor. Должен иметь один из следующих типов: qint8, quint8, qint32, qint16, quint16. |
min_features | Tensor типа float32. Значение с плавающей точкой, которому соответствует наименьшее квантованное значение. |
max_features | Tensor типа float32. Значение с плавающей точкой, которому соответствует наибольшее квантованное значение. |
out_type | Необязательный tf.DType из: tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16. По умолчанию — tf.quint8. |
name | Имя операции (необязательно). |
| Возвращаемые значения | |
|---|---|
Кортеж из объектов Tensor (activations, min_activations, max_activations). | |
activations | Tensor типа out_type. |
min_activations | Tensor типа float32. |
max_activations | Tensor типа float32. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/raw_ops/QuantizedRelu