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 4bdca0e commit 9021cb7Copy full SHA for 9021cb7
1 file changed
benchmarks/nn.py
@@ -36,7 +36,9 @@
36
# Drop zero-valued pixels from the (dominant) layer-0 contraction. A background
37
# pixel contributes 0 * weight = 0, so skipping those rows shrinks the join
38
# *exactly* — the result is identical, and the speedup scales with the fraction
39
-# of zeros (a dark background). On dense inputs it is a no-op. Toggle to compare.
+# of zeros (a dark background). On dense inputs it is a no-op.
40
+#
41
+# Measured ~1.8x on real Fashion-MNIST (~50% zero pixels): 2.56 -> 1.45 s/step.
42
SKIP_ZERO_PIXELS = True
43
44
0 commit comments