快捷方式

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

文件

訪問全面的 PyTorch 開發者文件

檢視文件

教程

為初學者和高階開發者提供深度教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源