tf.raw_ops.QuantizedRelu6
Вычисляет квантованную функцию выпрямления с ограничением до 6: min(max(features, 0), 6)
tf.raw_ops.QuantizedRelu6(
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/QuantizedRelu6