mlx.core.tanh

目錄

mlx.core.tanh#

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

Element-wise hyperbolic tangent.

參數:

a (array) -- Input array.

回傳:

The hyperbolic tangent of a.

回傳型別:

array