MAOutputScaleLayer¶
- class paddle.nn.quant.quant_layers. MAOutputScaleLayer ( layer: Layer | None = None, moving_rate: float = 0.9, name: str | None = None, dtype: DTypeLike = 'float32', reduce_type: Literal[max] | None = None ) [source]
-
Add MovingAverageMaxScale layer to the behind of the input layer. Calculate the scale (moving average abs max) for the output of the input layer.
-
forward
(
*inputs: Any,
**kwargs: Any
)
Tensor
forward¶
-
Defines the computation performed at every call. Should be overridden by all subclasses.
- Parameters
-
*inputs (tuple) – unpacked tuple arguments
**kwargs (dict) – unpacked dict arguments
-
forward
(
*inputs: Any,
**kwargs: Any
)
Tensor