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

Fixed a bug in modeled app plotting

parent 16397c55
No related branches found
No related tags found
No related merge requests found
......@@ -449,6 +449,13 @@ class ApproxModeledTuner(ApproxTuner):
f"No tuning session has been run; call self.tune() first."
)
# For empirical tuning there's no `validated_qos`.
# We first check, and if that's the case, we pass on to our parent class instead.
val_qos_nones = [conf.validated_qos is None for conf in self.kept_configs]
if any(val_qos_nones):
assert all(val_qos_nones)
return super().plot_configs(show_qos_loss, connect_best_points, False)
def get_points(confs, validated):
def qos_speedup(conf):
return conf.validated_qos if validated else conf.qos, conf.speedup
......
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