Skip to content
Snippets Groups Projects
Commit 745da98e authored by Hashim Sharif's avatar Hashim Sharif
Browse files

Modifying Conf Measurement for Efficient Execution

parent fa5d899f
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ def getAccuracy(file_name):
return accuracy
total_runs = 30.0
total_runs = 60.0
skip_lines = 0
......@@ -84,7 +84,7 @@ def getConfidence(accuracy_outfile, acc_threshold):
# NOTE: invokes the binary with the number of runs
# NOTE: invokes the binary with the number of runs
def do_multiple_runs2(binary_name, accuracy_threshold, confidence_threshold):
successful_runs = 0.0
......@@ -337,7 +337,8 @@ def compute_promise_confidence2(binary_name, accuracy, confidence, layer_costs,
tuner_file.write(config_str)
tuner_file.close()
run_confidence, avg_accuracy = do_multiple_runs(binary_name, accuracy, confidence)
#run_confidence, avg_accuracy = do_multiple_runs(binary_name, accuracy, confidence)
run_confidence, avg_accuracy = do_multiple_runs2(binary_name, accuracy, confidence)
if run_confidence >= 95:
f2 = open(output_dir + "/" + file_name, "w+")
......
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