def _estimate_time_for_run_datas(self, run_bin_size: int, data1: RunData, data2: RunData,
min_runs: int, max_runs: int) -> float:
if min(len(data1), len(data2)) == 0 \
or "__ov-time" not in data1.properties \
or "__ov-time" not in data2.properties:
return max_runs
needed_runs = []
for prop in set(data1.properties).intersection(data2.properties):
estimate = self.tester.estimate_needed_runs(data1[prop], data2[prop],
run_bin_size, min_runs, max_runs)
needed_runs.append(estimate)
avg_time = max(scipy.mean(data1["__ov-time"]), scipy.mean(data2["__ov-time"]))
return max(needed_runs) * avg_time
评论列表
文章目录