mindspore.ops.Tanh

class mindspore.ops.Tanh[source]
prim = ops.Tanh()
out = prim(input)

is equivalent to

ops.tanh(input)

Refer to mindspore.ops.tanh() for more details.