評價此頁

LeakyReLU#

class torch.ao.nn.quantized.LeakyReLU(scale, zero_point, negative_slope=0.01, inplace=False, device=None, dtype=None)[原始碼]#

這是 LeakyReLU 的量化等價物。

引數
  • scale (float) – 輸出張量的量化尺度

  • zero_point (int) – 輸出張量的量化零點

  • negative_slope (float) – 控制負斜率的角度。預設值:1e-2