Spec-Zone.ru › TensorFlow

tf.compat.v1.nn.quantized_relu_x

Вычисляет квантованную выпрямленную линейную функцию X: min(max(features, 0), max_value)

tf.compat.v1.nn.quantized_relu_x(
    features: Annotated[Any, TV_QuantizedReluX_Tinput],
    max_value: Annotated[Any, _atypes.Float32],
    min_features: Annotated[Any, _atypes.Float32],
    max_features: Annotated[Any, _atypes.Float32],
    out_type: TV_QuantizedReluX_out_type = tf.dtypes.quint8,
    name=None
)
Аргументы
features Tensor. Должен иметь один из следующих типов: qint8, quint8, qint32, qint16, quint16.
max_value Tensor типа float32.
min_features Tensor типа float32. Значение float, которому соответствует наименьшее квантованное значение.
max_features Tensor типа float32. Значение float, которому соответствует наибольшее квантованное значение.
out_type Необязательный tf.DType из: tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16. По умолчанию используется tf.quint8.
name Имя операции (необязательно).
Возвращаемые значения
Кортеж объектов Tensor (активации, 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/compat/v1/nn/quantized_relu_x

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API