mlx.core.sigmoid

目錄

mlx.core.sigmoid#

sigmoid(a: array, /, *, stream: None | Stream | Device = None) array#

Element-wise logistic sigmoid.

The logistic sigmoid function is:

\[\mathrm{sigmoid}(x) = \frac{1}{1 + e^{-x}}\]
參數:

a (array) -- 輸入陣列。

回傳值:

The logistic sigmoid of a.

回傳值型別:

array