ELU¶
- class torch.nn.ELU(alpha=1.0, inplace=False)[source][source]¶
逐元素 (element-wise) 應用指數線性單元 (Exponential Linear Unit, ELU) 函數。
此方法描述於論文:Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs)。
ELU 定義為
- 形狀
輸入:,其中 表示任何數量的維度。
輸出:,與輸入形狀相同。
範例
>>> m = nn.ELU() >>> input = torch.randn(2) >>> output = m(input)