Skip to content

Commit 64162de

Browse files
committedDec 7, 2024·
fix: update plots for graph translation
1 parent f81465c commit 64162de

9 files changed

+17
-16
lines changed
 

‎benchmarks/cuda_benchmark_results.npz

-4.69 KB
Binary file not shown.
-4.69 KB
Binary file not shown.

‎benchmarks/run_benchmark.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class Paths:
1818
FUNCTIONS_DIR = os.path.join(cur_dir, "data")
1919
OUTPUT_DIR = cur_dir
20-
RUN_CUSADI = False
20+
RUN_CUSADI = True
2121

2222

2323
class ColabPaths:
@@ -43,11 +43,11 @@ class ColabPaths:
4343

4444
torch.manual_seed(0)
4545

46-
N_ENVS_SWEEP = [2**i for i in range(1)]
47-
N_EVALS = 20
46+
N_ENVS_SWEEP = [2**i for i in range(15)]
47+
N_EVALS = 10
4848

4949
# Load functions for CUDA benchmarking
50-
fn_files = ["fn_1e1.casadi", "fn_1e2.casadi", "fn_1e3.casadi", "fn_1e4.casadi", "fn_1e5.casadi"]
50+
fn_files = ["fn_1e1.casadi", "fn_1e2.casadi", "fn_1e3.casadi", "fn_1e4.casadi"]
5151
benchmark_fns = [Function.load(os.path.join(PathsProvider.FUNCTIONS_DIR, fn)) for fn in fn_files]
5252

5353

‎benchmarks/visualize.ipynb

+13-12
Large diffs are not rendered by default.
9.22 KB
Loading
3.19 KB
Loading
32.1 KB
Loading
29.6 KB
Loading

‎docs/static/images/speedup_ratio.png

19.4 KB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.