mlx.nn.log_sigmoid

目錄

mlx.nn.log_sigmoid#

class log_sigmoid(x)#

套用對數 sigmoid 函式。

逐元素套用 \(\log(\sigma(x)) = -\log(1 + e^{-x})\)