FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

add missing numpy import · feibyte/docker-python@5dc100d · GitHub

Commit 5dc100d

Browse files
committed
add missing numpy import
1 parent 393a824 commit 5dc100d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/test_jax.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
class TestJAX(unittest.TestCase):
99
def tanh(self, x):
10+
import jax.numpy as np
1011
y = np.exp(-2.0 * x)
1112
return (1.0 - y) / (1.0 + y)
1213

1314
@gpu_test
1415
def test_JAX(self):
1516
# importing inside the gpu-only test because these packages can't be
1617
# imported on the CPU image since they are not present there.
17-
import jax.numpy as np
1818
from jax import grad, jit
1919

2020
grad_tanh = grad(self.tanh)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL