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