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

Fixed plotting error when no config (model-free case)

parent 7e220289
No related branches found
No related tags found
No related merge requests found
......@@ -295,6 +295,8 @@ class ApproxTuner(Generic[T]):
return conf.test_qos if use_test_qos else conf.qos, conf.speedup
def get_points(confs):
if not confs:
return np.zeros((2, 0))
sorted_points = np.array(
sorted([qos_speedup(c) for c in confs], key=lambda p: p[0])
).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