MCPcopy Create free account
hub / github.com/PythonOT/POT / setup_backends

Function setup_backends

benchmarks/benchmark.py:8–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def setup_backends():
9 if jax:
10 from jax.config import config
11
12 config.update("jax_enable_x64", True)
13
14 if tf:
15 from tensorflow.python.ops.numpy_ops import np_config
16
17 np_config.enable_numpy_behavior()
18
19
20def exec_bench(setup, tested_function, param_list, n_runs, warmup_runs):

Callers 2

sinkhorn_knopp.pyFile · 0.85
emd.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected