parameters: (self, target: Tensor, inp: Tensor, w_qat: Tensor)
return_statement: return b_qat
docstring: r"""Use :func:`~.fake_quant_bias` to process ``target``. Only valid when
          ``act_fake_quant`` and ``weight_fake_quant`` are both enabled.
docstring_summary: r"""Use :func:`~.fake_quant_bias` to process ``target``. Only valid when
          ``act_fake_quant`` and ``weight_fake_quant`` are both enabled.
docstring_tokens: r Use : func : ~ . fake_quant_bias to process target . Only valid when act_fake_quant and weight_fake_quant are both enabled .
function: def apply_quant_bias(self, target: Tensor, inp: Tensor, w_qat: Tensor):
          r"""Use :func:`~.fake_quant_bias` to process ``target``. Only valid when
          ``act_fake_quant`` and ``weight_fake_quant`` are both enabled.
          """
          # bias should have the same dtype as activation, so act_fake_quant can also
          # decide whether to do bias fakequant
          if (
              self.act_fake_quant
              and self.act_fake_quant.enabled
              and self.weight_fake_quant
              and self.weight_fake_quant.enabled
          ):
              b_qat = fake_quant_bias(target, inp, w_qat)
          else:
              b_qat = target
          return b_qat
function_tokens: def apply_quant_bias ( self , target : Tensor , inp : Tensor , w_qat : Tensor ) : # bias should have the same dtype as activation, so act_fake_quant can also # decide whether to do bias fakequant if ( self . act_fake_quant and self . act_fake_quant . enabled and self . weight_fake_quant and self . weight_fake_quant . enabled ) : b_qat = fake_quant_bias ( target , inp , w_qat ) else : b_qat = target return b_qat