Skip to content

Commit 95f5ef6

Browse files
committed
testing cpu run time
1 parent ac020a0 commit 95f5ef6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lectures/mccall_fitted_vfi.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ import jax
5454
import jax.numpy as jnp
5555
from typing import NamedTuple
5656
import quantecon as qe
57+
58+
# Set JAX to use CPU
59+
jax.config.update('jax_platform_name', 'cpu')
5760
```
5861

5962
## The algorithm

0 commit comments

Comments
 (0)