File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed
modules/jax/testcontainers/jax Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,23 @@ class JAXContainer(DockerContainer):
11
11
12
12
Example:
13
13
14
- .. doctest::
14
+ .. doctest::
15
15
16
- >>> import jax
17
- >>> from testcontainers.jax import JAXContainer
16
+ >>> import jax
17
+ >>> from testcontainers.jax import JAXContainer
18
18
19
- >>> with JAXContainer("nvcr.io/nvidia/jax:23.08-py3") as jax_container:
20
- ... # Connect to the container
21
- ... jax_container.connect()
22
- ...
23
- ... # Run a simple JAX computation
24
- ... result = jax.numpy.add(1, 1)
25
- ... assert result == 2
19
+ >>> with JAXContainer("nvcr.io/nvidia/jax:23.08-py3") as jax_container:
20
+ ... # Connect to the container
21
+ ... jax_container.connect()
22
+ ...
23
+ ... # Run a simple JAX computation
24
+ ... result = jax.numpy.add(1, 1)
25
+ ... assert result == 2
26
+
27
+ .. auto-class:: JAXContainer
28
+ :members:
29
+ :undoc-members:
30
+ :show-inheritance:
26
31
"""
27
32
28
33
def __init__ (self , image = "nvcr.io/nvidia/jax:23.08-py3" , ** kwargs ):
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ neo4j = ["neo4j"]
146
146
nginx = []
147
147
opensearch = [" opensearch-py" ]
148
148
ollama = []
149
+ jax = [" jax" ]
149
150
oracle = [" sqlalchemy" , " oracledb" ]
150
151
oracle-free = [" sqlalchemy" , " oracledb" ]
151
152
postgres = []
You can’t perform that action at this time.
0 commit comments