diff options
author | Grigori Fursin <grigori.fursin@cTuning.org> | 2017-05-24 15:08:34 +0200 |
---|---|---|
committer | Grigori Fursin <grigori.fursin@cTuning.org> | 2017-05-24 15:08:34 +0200 |
commit | 35e2e6c3a45f5bf05863b4f46dd79702aef19556 (patch) | |
tree | 77094b426e95433aa9522befa2e91d68bced4b99 /scripts/benchmark/benchmark.py | |
parent | 953a5a9c2246439f1c68a0872bbf83d5d0dd466f (diff) |
changing "wb" to "w" when saving json file (text mode) - compatibility for Python 3
Diffstat (limited to 'scripts/benchmark/benchmark.py')
-rw-r--r-- | scripts/benchmark/benchmark.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/benchmark/benchmark.py b/scripts/benchmark/benchmark.py index a5f216c6..3239d385 100644 --- a/scripts/benchmark/benchmark.py +++ b/scripts/benchmark/benchmark.py @@ -120,7 +120,7 @@ def benchmark_single(benchmark, platform, device, num_runs, precision, load_from # Stores the results to disk print("[benchmark] Saving benchmark results to '" + json_file_name + "'") - with open(json_file_name, "wb") as f: + with open(json_file_name, "w") as f: json.dump(results, f, sort_keys=True, indent=4) # Retrieves the data from the benchmark settings |