remove tk's and clean up writing

This commit is contained in:
Daniel Bourke committed 2023-04-13 16:37:43 +10:00
1 parent baf768b8a6
commit b2ca6c3111
1 file changed
+3 -3
+3 -3
View File
@@ -454,7 +454,7 @@
" # Get GPU name\n",
" gpu_name = !nvidia-smi --query-gpu=gpu_name --format=csv\n",
" gpu_name = gpu_name[1]\n",
" GPU_NAME = gpu_name.replace(\" \", \"_\")\n",
" GPU_NAME = gpu_name.replace(\" \", \"_\") # remove underscores for easier saving\n",
" print(f'GPU name: {GPU_NAME}')\n",
"\n",
" # Get GPU capability score\n",
@@ -2166,8 +2166,8 @@
"os.makedirs(pytorch_2_single_run_results_dir, exist_ok=True)\n",
"\n",
"# Create filenames for each of the dataframes\n",
"save_name_for_non_compiled_results = f\"single_run_non_compiled_results_{DATASET_NAME}_{MODEL_NAME}_{GPU_NAME.replace(' ', '_')}.csv\"\n",
"save_name_for_compiled_results = f\"single_run_compiled_results_{DATASET_NAME}_{MODEL_NAME}_{GPU_NAME.replace(' ', '_')}.csv\"\n",
"save_name_for_non_compiled_results = f\"single_run_non_compiled_results_{DATASET_NAME}_{MODEL_NAME}_{GPU_NAME}.csv\"\n",
"save_name_for_compiled_results = f\"single_run_compiled_results_{DATASET_NAME}_{MODEL_NAME}_{GPU_NAME}.csv\"\n",
"\n",
"# Create filepaths to save the results to\n",
"single_run_no_compile_save_path = f\"{pytorch_2_single_run_results_dir}/{save_name_for_non_compiled_results}\"\n",