Skip to content

Commit 9b68cc4

Browse files
committed
Update benchmarks
* add FlatRule * use smaller augmentations for SmoothGrad and IntegratedGradients
1 parent 318e1a5 commit 9b68cc4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

benchmark/benchmarks.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ algs = Dict(
1818
"Gradient" => Gradient,
1919
"InputTimesGradient" => InputTimesGradient,
2020
"LRP" => LRP,
21-
"SmoothGrad" => model -> SmoothGrad(model, 10),
22-
"IntegratedGradients" => model -> IntegratedGradients(model, 10),
21+
"SmoothGrad" => model -> SmoothGrad(model, 5),
22+
"IntegratedGradients" => model -> IntegratedGradients(model, 5),
2323
)
2424

2525
# Define benchmark
@@ -51,10 +51,11 @@ rules = Dict(
5151
"ZeroRule" => ZeroRule(),
5252
"EpsilonRule" => EpsilonRule(),
5353
"GammaRule" => GammaRule(),
54-
"ZBoxRule" => ZBoxRule(zero(T), oneunit(T)),
55-
"FlatRule" => FlatRule(),
5654
"WSquareRule" => WSquareRule(),
55+
"FlatRule" => FlatRule(),
5756
"AlphaBetaRule" => AlphaBetaRule(),
57+
"ZPlusRule" => ZPlusRule(),
58+
"ZBoxRule" => ZBoxRule(zero(T), oneunit(T)),
5859
)
5960

6061
SUITE["Layer"] = BenchmarkGroup([k for k in keys(layers)])

0 commit comments

Comments
 (0)