Skip to content

Commit 78d9a9b

Browse files
committed
Add legend to plot, add more conv parameters to benchmark explanation
1 parent 9718c5c commit 78d9a9b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ Benchmarking FFT convolution against the direct convolution from PyTorch in 1D,
5454
and 3D. The exact times are heavily dependent on your local machine, but relative
5555
scaling with kernel size is always the same.
5656

57-
Num dimensions | Input Array Size
58-
---------------|------------------
59-
1 | (4096)
60-
2 | (512, 512)
61-
3 | (64, 64, 64)
57+
Dimensions | Input Size | Input Channels | Output Channels | Bias | Padding | Stride | Dilation
58+
-----------|--------------|----------------|-----------------|------|---------|--------|---------
59+
1 | (4096) | 4 | 4 | True | 0 | 1 | 1
60+
2 | (512, 512) | 4 | 4 | True | 0 | 1 | 1
61+
3 | (64, 64, 64) | 4 | 4 | True | 0 | 1 | 1
6262

6363
![Benchmark Plot](doc/benchmark.png)

doc/benchmark.png

2.04 KB
Loading

doc/scripts/generate_benchmark_plot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,5 @@ def _plot_benchmarks(
141141
_plot_benchmarks(direct, config=config, ax=ax[0, i], color="b", label="Direct")
142142

143143
ax[0, 0].set_ylabel("Execution Time (ms)")
144+
plt.legend(["FFT", "Direct"])
144145
plt.savefig(os.path.join(save_dir, "benchmark.png"))

0 commit comments

Comments
 (0)