From 1f24d5636d934d50ba0f2f160d1a0b827f2e3f74 Mon Sep 17 00:00:00 2001 From: JiacongSun Date: Fri, 10 Nov 2023 20:20:06 +0100 Subject: [PATCH] delete debug.py --- debug.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 debug.py diff --git a/debug.py b/debug.py deleted file mode 100644 index 918bf98a..00000000 --- a/debug.py +++ /dev/null @@ -1,26 +0,0 @@ -from zigzag.api import get_hardware_performance_zigzag - -opt = 'EDP' -model = "alexnet" -onnx_model_path = f"zigzag/inputs/examples/workload/{model}.onnx" -workload = onnx_model_path - -hwarchs = ["Edge_TPU_like", "Ascend_like", "Eyeriss_like", "Meta_prototype", "Tesla_NPU_like", "TPU_like"] - -for hwarch in hwarchs: - - mapping = f"zigzag.inputs.examples.mapping.default" - accelerator = f"zigzag.inputs.examples.hardware.{hwarch}" - - dump_filename_pattern=f"outputs/{hwarch}-{model}-layer_?.json" - pickle_filename = f"outputs/{hwarch}-{model}-saved_list_of_cmes.pickle" - - energy, latency, cme = get_hardware_performance_zigzag(workload=workload, - accelerator=accelerator, - mapping=mapping, - opt=opt, - dump_filename_pattern=dump_filename_pattern, - pickle_filename=pickle_filename) - print(f"Total network energy = {energy:.2e} pJ") - print(f"Total network latency = {latency:.2e} cycles") - print(f"Total edp = {energy*latency:.2e} pJ*cycles") \ No newline at end of file