From b2ca6c3111fe44a6aebba98501c2111061cea50c Mon Sep 17 00:00:00 2001 From: Daniel Bourke Date: Thu, 13 Apr 2023 16:37:43 +1000 Subject: [PATCH] remove tk's and clean up writing --- extras/pytorch_2_intro.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extras/pytorch_2_intro.ipynb b/extras/pytorch_2_intro.ipynb index b1e29ad..9a4480b 100644 --- a/extras/pytorch_2_intro.ipynb +++ b/extras/pytorch_2_intro.ipynb @@ -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",