We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca6c53 commit 34d2dc1Copy full SHA for 34d2dc1
src/enzyme_ad/jax/Passes/EqualitySaturation.cpp
@@ -483,7 +483,11 @@ class OperationTimer {
483
// TODO: This means there's no point in warmup anymore, since we're now
484
// taking individual measurements. Maybe we get rid of the parameter or do
485
// something more sophisticated
486
- auto cost = *std::min_element(durations.begin(), durations.end());
+ //
487
+ // auto cost = *std::min_element(durations.begin(), durations.end());
488
+
489
+ // Try median?
490
+ auto cost = durations[durations.size() / 2];
491
assert(!futures);
492
493
// Cleanup
0 commit comments