Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kaggle/docker-python
/ tanh
Method
tanh
tests/test_jax.py:14–16 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
12
13
class
TestJAX(unittest.TestCase):
14
def
tanh(self, x):
15
y = np.exp(-2.0 * x)
16
return
(1.0 - y) / (1.0 + y)
17
18
def
test_grad(self):
19
grad_tanh = grad(self.tanh)
Callers
1
go_fast
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected