评价此页

LayerNorm#

class torch.ao.nn.quantized.LayerNorm(normalized_shape, weight, bias, scale, zero_point, eps=1e-05, elementwise_affine=True, device=None, dtype=None)[source]#

这是LayerNorm 的量化版本。

Additional args
  • scale - 输出的量化尺度,类型:double。

  • zero_point - 输出的量化零点,类型:long。