MAOutputScaleLayer

class paddle.nn.quant.quant_layers. MAOutputScaleLayer ( layer=None, moving_rate=0.9, name=None, dtype='float32', reduce_type=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, **kwargs )

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