Skip to content
Snippets Groups Projects
Commit 6ca0dbb8 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Fixed plotting error when there's no config

parent 76268cf7
No related branches found
No related tags found
No related merge requests found
...@@ -460,6 +460,8 @@ class ApproxModeledTuner(ApproxTuner): ...@@ -460,6 +460,8 @@ class ApproxModeledTuner(ApproxTuner):
def qos_speedup(conf): def qos_speedup(conf):
return conf.validated_qos if validated else conf.qos, conf.speedup return conf.validated_qos if validated else conf.qos, conf.speedup
if not confs:
return np.zeros((2, 0))
sorted_points = np.array( sorted_points = np.array(
sorted([qos_speedup(c) for c in confs], key=lambda p: p[0]) sorted([qos_speedup(c) for c in confs], key=lambda p: p[0])
).T ).T
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment