Skip to content

Commit

Permalink
[NB] make all output paths absolute in advanced notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnoel committed Oct 11, 2023
1 parent 98e94f7 commit 5eb535a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions notebooks/advanced/4_advanced_builder_settings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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))"
]
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 5eb535a

Please sign in to comment.