CLBlast/scripts/benchmark
Witold Baryluk ea199c3469
Allow single graph / subplot on plot
`plt.subplots` tries to be special, and return array or not-array depending on a number of subplots.

It is not actually helpful, and IMHO bad design.

Make it always `ndarray`.

The `and not type(axes) is np.ndarray`, is just in case matplotlib decides to make their behavior more uniform. For now work around it.

Also, no need for `ndarray.flat` really.

Confirmed to work with existing benchmarks (i.e. rows=2, cols=3), and with single graphs (rows=1, cols=1).
2020-10-05 12:11:17 +00:00
..
benchmark.py Fix a typo in benchmark when running fp 16 vs 32 2020-10-04 10:22:00 +00:00
benchmark_all.py Some fixes to the benchmark scripts 2018-01-27 20:06:13 +01:00
plot.py Allow single graph / subplot on plot 2020-10-05 12:11:17 +00:00
settings.py Some fixes to the benchmark scripts 2018-01-27 20:06:13 +01:00
utils.py Fix a Python 3 bug in the benchmark script 2020-10-02 20:32:58 +02:00