泄漏ReLU

torch.ao.nn.quantized.LeakyReLU(scale, zero_point, negative_slope=0.01, inplace=False, device=None, dtype=None)[源代码]

这是LeakyReLU的量化等价版本。

参数
  • scale (浮点数) — 输出张量的量化尺度因子

  • zero_point (int) – 输出张量的量化零点值

  • negative_slope (float) – 控制负斜率的大小。默认值:1e-2

本页目录