com.microsoft - QLinearLeakyRelu#

QLinearLeakyRelu - 1 (com.microsoft)#

Version

This version of the operator has been available since version 1 of domain com.microsoft.

Summary

QLinearLeakyRelu takes quantized input data (Tensor), an argument alpha, and quantize parameter for output, and produces one output data (Tensor<T>) where the function f(x) = quantize(alpha * dequantize(x)) for dequantize(x) < 0, f(x) = quantize(dequantize(x)) for dequantize(x) >= 0, is applied to the data tensor elementwise.

Attributes

  • alpha: Coefficient of leakage. Default value is ?.

Inputs

Between 4 and 5 inputs.

  • X (heterogeneous) - T: Input tensor

  • X_scale (heterogeneous) - tensor(float): Input X’s scale. It’s a scalar, which means a per-tensor/layer quantization.

  • X_zero_point (optional, heterogeneous) - T: Input X’s zero point. Default value is 0 if it’s not specified. It’s a scalar, which means a per-tensor/layer quantization.

  • Y_scale (heterogeneous) - tensor(float): Output Y’s scale. It’s a scalar, which means a per-tensor/layer quantization.

  • Y_zero_point (optional, heterogeneous) - T: Output Y’s zero point. Default value is 0 if it’s not specified. It’s a scalar, which means a per-tensor/layer quantization.

Outputs

  • Y (heterogeneous) - T: Output tensor

Examples