From 2faa62c55627bbbd0037d8fa29decfbc2da3b525 Mon Sep 17 00:00:00 2001 From: MrPoll0 Date: Thu, 26 Jun 2025 22:24:09 +0200 Subject: [PATCH] fix: corrected print variable for output result in sequential api --- lab1/PT_Part1_Intro.ipynb | 2 +- lab1/solutions/PT_Part1_Intro_Solution.ipynb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lab1/PT_Part1_Intro.ipynb b/lab1/PT_Part1_Intro.ipynb index db97d067..e0e03e2c 100644 --- a/lab1/PT_Part1_Intro.ipynb +++ b/lab1/PT_Part1_Intro.ipynb @@ -426,7 +426,7 @@ "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 result: {model_output}\")" ] }, { diff --git a/lab1/solutions/PT_Part1_Intro_Solution.ipynb b/lab1/solutions/PT_Part1_Intro_Solution.ipynb index f0529493..67eeba3e 100644 --- a/lab1/solutions/PT_Part1_Intro_Solution.ipynb +++ b/lab1/solutions/PT_Part1_Intro_Solution.ipynb @@ -502,7 +502,7 @@ "text": [ "input shape: torch.Size([1, 2])\n", "output shape: torch.Size([1, 3])\n", - "output result: tensor([[0.7318, 0.9903, 0.9854]], grad_fn=)\n" + "output result: tensor([[0.1982, 0.6723, 0.1635]], grad_fn=)\n" ] } ], @@ -512,7 +512,7 @@ "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 result: {model_output}\")" ] }, {