Skip to content

Commit d24a951

Browse files
committed
use CPU
1 parent 731446f commit d24a951

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lectures/jv.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ import jax.numpy as jnp
5050
import jax.random as jr
5151
import scipy.stats as stats
5252
from typing import NamedTuple
53+
54+
# Set JAX to use CPU
55+
jax.config.update('jax_platform_name', 'cpu')
5356
```
5457

5558
### Model features

0 commit comments

Comments
 (0)