class
AirReluType
PythonAIR RELU types.
AirReluType()AIR RELU types.
constant
RELU
PythonRELU: str = auto()ReLU activation.
constant
RELU6
PythonRELU6: str = auto()ReLU6 activation.
constant
RELU_N1_TO_1
PythonRELU_N1_TO_1: str = auto()ReLU activation with range [-1, 1].
constant
RELU_0_TO_1
PythonRELU_0_TO_1: str = auto()ReLU activation with range [0, 1].
method
compute_range
PythonCompute quantized activation clamp range.
compute_range( output_zero_point: int, output_scale: float, *, dtype: npt.DTypeLike | None = None, qmin: int | None = None, qmax: int | None = None, num_bits: int | None = None, signed: bool | None = None,) -> tuple[int, int]Compute quantized activation clamp range.