MCPcopy Create free account
hub / github.com/apache/singa / tanh

Function tanh

python/singa/autograd.py:1955–1963  ·  view source on GitHub ↗

Calculates the hyperbolic tangent of the given input tensor element-wise. Args: x (Tensor): Input tensor Returns: Tensor, the output

(x)

Source from the content-addressed store, hash-verified

1953
1954
1955def tanh(x):
1956 """
1957 Calculates the hyperbolic tangent of the given input tensor element-wise.
1958 Args:
1959 x (Tensor): Input tensor
1960 Returns:
1961 Tensor, the output
1962 """
1963 return Tanh()(x)[0]
1964
1965
1966class Cos(Operator):

Callers

nothing calls this directly

Calls 1

TanhClass · 0.85

Tested by

no test coverage detected