tf -- activations -- hard_sigmoid

Hard sigmoid激活函數。 計算速度比 sigmoid 激活函數更快。 參數: x:輸入張量。 Hard sigmoid 激活: 如果 x < -2.5,返回 0。 如果 x > 2.5,返回 1。 如果 -2.5 <= x <= 2.5,返回 0.2 * x + 0.5。
相關文章
相關標籤/搜索