Skip to content

Commit 2836630

Browse files
authored
Fix benchmark setup (#2632)
1 parent 08e171b commit 2836630

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/benchmarks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ end
5757
y1d = rand(40);
5858
dist1d = fill(10.0, 40);
5959

60-
SUITE["fold_broadcast"]["multidim_sum_bcast"]["1D"] = @benchmarkable multidim_sum_bcast($dist1d, $y1d)
60+
SUITE["fold_broadcast"]["multidim_sum_bcast"]["1D"] = @benchmarkable Enzyme.gradient(Reverse, multidim_sum_bcast, Const($dist1d), $y1d)
6161

6262
y2d = rand(10, 4);
6363
dist2d = fill(10.0, 10, 4);
6464

65-
SUITE["fold_broadcast"]["multidim_sum_bcast"]["2D"] = @benchmarkable multidim_sum_bcast($dist2d, $y2d)
65+
SUITE["fold_broadcast"]["multidim_sum_bcast"]["2D"] = @benchmarkable Enzyme.gradient(Reverse, multidim_sum_bcast, Const($dist2d), $y2d)
6666

6767

0 commit comments

Comments
 (0)