From 5eb535a7c86a84d7195b8059765ea33f075c761b Mon Sep 17 00:00:00 2001 From: johnnoel Date: Wed, 11 Oct 2023 14:34:10 +0100 Subject: [PATCH] [NB] make all output paths absolute in advanced notebook --- .../4_advanced_builder_settings.ipynb | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/notebooks/advanced/4_advanced_builder_settings.ipynb b/notebooks/advanced/4_advanced_builder_settings.ipynb index 4af48ac233..e748d85a1c 100644 --- a/notebooks/advanced/4_advanced_builder_settings.ipynb +++ b/notebooks/advanced/4_advanced_builder_settings.ipynb @@ -143,7 +143,7 @@ "model_dir = os.environ['FINN_ROOT'] + \"/notebooks/advanced\"\n", "model_file = model_dir + \"/end2end_cnv_w2a2_export.onnx\"\n", "\n", - "estimates_output_dir = \"output_estimates_only\"\n", + "estimates_output_dir = build_dir + \"/output_estimates_only\"\n", "\n", "#Delete previous run results if exist\n", "if os.path.exists(estimates_output_dir):\n", @@ -427,7 +427,7 @@ "model_dir = os.environ['FINN_ROOT'] + \"/notebooks/advanced\"\n", "model_file = model_dir + \"/end2end_cnv_w2a2_export.onnx\"\n", "\n", - "output_dir = \"output_pre_proc\"\n", + "output_dir = build_dir + \"/output_pre_proc\"\n", "\n", "#Delete previous run results if exist\n", "if os.path.exists(output_dir):\n", @@ -535,7 +535,7 @@ "model_dir = os.environ['FINN_ROOT'] + \"/notebooks/advanced\"\n", "model_file = model_dir + \"/end2end_cnv_w2a2_export.onnx\"\n", "\n", - "output_dir = \"output_pre_and_post_proc\"\n", + "output_dir = build_dir + \"/output_pre_and_post_proc\"\n", "\n", "#Delete previous run results if exist\n", "if os.path.exists(output_dir):\n", @@ -782,7 +782,7 @@ "model_dir = os.environ['FINN_ROOT'] + \"/notebooks/advanced\"\n", "model_file = model_dir + \"/end2end_cnv_w2a2_export.onnx\"\n", "\n", - "output_dir = \"output_all_lutram\"\n", + "output_dir = build_dir + \"/output_all_lutram\"\n", "\n", "#Delete previous run results if exist\n", "if os.path.exists(output_dir):\n", @@ -886,7 +886,7 @@ "model_dir = os.environ['FINN_ROOT'] + \"/notebooks/advanced\"\n", "model_file = model_dir + \"/end2end_cnv_w2a2_export.onnx\"\n", "\n", - "output_dir = \"output_all_bram\"\n", + "output_dir = build_dir + \"/output_all_bram\"\n", "\n", "#Delete previous run results if exist\n", "if os.path.exists(output_dir):\n", @@ -1090,7 +1090,7 @@ "model_dir = os.environ['FINN_ROOT'] + \"/notebooks/advanced\"\n", "model_file = model_dir + \"/end2end_cnv_w2a2_export.onnx\"\n", "\n", - "output_dir = \"output_with_verification\"\n", + "output_dir = build_dir + \"/output_with_verification\"\n", "\n", "#Delete previous run results if exist\n", "if os.path.exists(output_dir):\n", @@ -1191,7 +1191,7 @@ "metadata": {}, "outputs": [], "source": [ - "verify_initial_python = np.load(\"output_with_verification/verification_output/verify_initial_python_0_SUCCESS.npy\")\n", + "verify_initial_python = np.load(build_dir + \"/output_with_verification/verification_output/verify_initial_python_0_SUCCESS.npy\")\n", "print(\"The output of the verification step after the step_tidy_up is: \" + str(verify_initial_python))" ] }, @@ -1352,7 +1352,7 @@ "model_dir = os.environ['FINN_ROOT'] + \"/notebooks/advanced\"\n", "model_file = model_dir + \"/end2end_cnv_w2a2_export.onnx\"\n", "\n", - "output_dir = \"output_standalone_thresholds\"\n", + "output_dir = build_dir + \"/output_standalone_thresholds\"\n", "\n", "#Delete previous run results if exist\n", "if os.path.exists(output_dir):\n", @@ -1449,7 +1449,7 @@ "model_dir = os.environ['FINN_ROOT'] + \"/notebooks/advanced\"\n", "model_file = model_dir + \"/end2end_cnv_w2a2_export.onnx\"\n", "\n", - "output_dir = \"output_rtl_swg\"\n", + "output_dir = build_dir + \"/output_rtl_swg\"\n", "\n", "#Delete previous run results if exist\n", "if os.path.exists(output_dir):\n", @@ -1556,7 +1556,7 @@ "model_dir = os.environ['FINN_ROOT'] + \"/notebooks/advanced\"\n", "model_file = model_dir + \"/end2end_cnv_w2a2_export.onnx\"\n", "\n", - "output_dir = \"output_bitfile\"\n", + "output_dir = build_dir + \"/output_bitfile\"\n", "\n", "#Delete previous run results if exist\n", "if os.path.exists(output_dir):\n",