Skip to content

Commit

Permalink
Wrap a diffeqzoo.backend.select to avoid unnecessary ci-crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkraemer committed Jun 13, 2024
1 parent 8e406a9 commit adffcb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/benchmarks/taylor_node/run_taylor_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ def adaptive_benchmark(fun, *, timeit_fun: Callable, max_time) -> dict:

if __name__ == "__main__":
set_jax_config()
backend.select("jax")

if not backend.has_been_selected:
backend.select("jax")

algorithms = {
r"Forward-mode": odejet_via_jvp(),
r"Taylor-mode (scan)": taylor_mode_scan(),
Expand Down

0 comments on commit adffcb1

Please sign in to comment.