nki.language.tanh — AWS Neuron Documentation (original) (raw)

This document is relevant for: Inf2, Trn1, Trn2

nki.language.tanh#

nki.language.tanh(x, *, dtype=None, mask=None, **kwargs)[source]#

Hyperbolic tangent of the input, element-wise.

((Similar to numpy.tanh))

Parameters:

Returns:

a tile that has hyperbolic tangent values of x.

This document is relevant for: Inf2, Trn1, Trn2