From a100791cc7b42f054877df805df91a511a78d547 Mon Sep 17 00:00:00 2001 From: matheesha12345 <167861688+matheesha12345@users.noreply.github.com> Date: Fri, 17 Apr 2026 14:38:45 +0530 Subject: [PATCH] Fixing the wrong variable name Code snippet outputted y instead of model_input --- lab1/PT_Part1_Intro.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lab1/PT_Part1_Intro.ipynb b/lab1/PT_Part1_Intro.ipynb index 49bcdeee..89f45d8f 100644 --- a/lab1/PT_Part1_Intro.ipynb +++ b/lab1/PT_Part1_Intro.ipynb @@ -425,8 +425,8 @@ "x_input = torch.tensor([[1, 2.]])\n", "model_output = model(x_input)\n", "print(f\"input shape: {x_input.shape}\")\n", - "print(f\"output shape: {y.shape}\")\n", - "print(f\"output result: {y}\")" + "print(f\"output shape: {model_output.shape}\")\n", + "print(f\"output result: {model_output}\")" ] }, {