Skip to content

Commit

Permalink
try median?
Browse files Browse the repository at this point in the history
  • Loading branch information
smjleo committed Jan 31, 2025
1 parent 4ca6c53 commit 34d2dc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/enzyme_ad/jax/Passes/EqualitySaturation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,11 @@ class OperationTimer {
// TODO: This means there's no point in warmup anymore, since we're now
// taking individual measurements. Maybe we get rid of the parameter or do
// something more sophisticated
auto cost = *std::min_element(durations.begin(), durations.end());
//
// auto cost = *std::min_element(durations.begin(), durations.end());

// Try median?
auto cost = durations[durations.size() / 2];
assert(!futures);

// Cleanup
Expand Down

0 comments on commit 34d2dc1

Please sign in to comment.