From 8f837fd55228f059ff24a2261636635ae5c2a577 Mon Sep 17 00:00:00 2001 From: Sargastico Date: Mon, 20 Feb 2023 01:44:33 -0300 Subject: [PATCH] Fix error caused by an extra "if clause". There is an extra "IF" clause in the code that prints out the GPU name. This causes an error. --- split_model_example.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/split_model_example.ipynb b/split_model_example.ipynb index c8fd99e..2098d42 100644 --- a/split_model_example.ipynb +++ b/split_model_example.ipynb @@ -77,7 +77,7 @@ "# Check if Colab is using gpu. \n", "# If not, Runtime tab -> Change runtime type -> Hardware Accelarator (GPU)\n", "gpu_name = !nvidia-smi -L\n", - "print(\"GPU name: \", gpu_name[0]) if if len(gpu_name) >= 1 else print(\"No GPU!\")" + "print(\"GPU name: \", gpu_name[0]) if len(gpu_name) >= 1 else print(\"No GPU!\")" ], "execution_count": 45, "outputs": [ @@ -1435,4 +1435,4 @@ ] } ] -} \ No newline at end of file +}