PassiveObserver

class PassiveObserver(dtype, **kwargs)[source]

An Observer that supports setting scale directly.

forward(x)[source]

Just return input because qparams is set by apply_easy_quant.

set_qparams(qparams)[source]

set the qparams.

Parameters

qparams (QParams) – used to set initial scale.